Here you find all available endpoints related to Swell CX teams. These endpoints are protected and you'll need an API Key.
In order to use the GET and POST requests, add to the header the following:
Key | Value |
---|---|
Content-Type | application/json |
Accept | application/json |
/api/v1/teams
Param | Required | Description |
---|---|---|
token | Required | The API token generated throught UI interface on swell platform. |
page | Optional | Specify the page you would like returned in a request. Minimum value: 1 |
per_page | Optional | Specify the number of records to return in one request, specified as an integer from 1 to 100. Default 15. |
/api/v1/teams?token=3lxeh7XMElKc97lbPNwWKNEBOw9Nzuur7ntfoKwBzh4UboVos0qU5qhFh4nT
{
"data": [
{
"id": 1,
"name": "Terry Group",
"locations_count": 9
}
],
"links": {
"first": "http://swell.test/api/v1/teams?page=1",
"last": "http://swell.test/api/v1/teams?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "http://swell.test/api/v1/teams",
"per_page": 15,
"to": 1,
"total": 1
}
}