Tags

In order to use the GET and POST requests, add to the header the following:

Key Value
Content-Type application/json
Accept application/json

GET /api/v1/tags

Parameters

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.

Examples


Request Example

/api/v1/tags?token=3lxeh7XMElKc97lbPNwWKNEBOw9Nzuur7ntfoKwBzh4UboVos0qU5qhFh4nT


Response

{
    "data": [
        {
            "id": 36,
            "name": "tag1"
        },
        {
            "id": 37,
            "name": "custom_tag"
        },
    ],
    "links": {
        "first": "http://swell.test/api/v1/tags?page=1",
        "last": "http://swell.test/api/v1/tags?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "http://swell.test/api/v1/tags",
        "per_page": 15,
        "to": 1,
        "total": 1
    }
}