Get token list
Description
Retrieve a list of tokens
Url
|
1 |
GET /api/v0/token/ |
Parameters optional
- collection__uuid: filter by collection UUID.
- collection__name: filter by collection name, using this exact match.
- collection__name__contains: filter by collection name, using case-sensitive containment.
Example
Get all tokens
Request
|
1 |
curl 'https://my.craftar.net/api/v0/token/?api_key=123456789abcdefghijk123456789abcdefghijk' |
Response
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
{ "objects": [ { "token": "6778c798da264f60", "resource_uri": "/api/v0/token/6778c798da264f60/", "collection": "/api/v0/collection/440c374d09424243b9448cd289545db1/" }, { "token": "1f894efc9b594c9c", "resource_uri": "/api/v0/token/1f894efc9b594c9c/", "collection": "/api/v0/collection/806e54535ffd464f83545c902e664aca/" } ], "meta": { "total_count": 2, "previous": null, "offset": 0, "next": null, "limit": 20 } } |
Get all tokens from the collection whose UUID is a046a5f3fbe44399a95a0e8efe3fb8eb
Request
|
1 |
curl 'https://my.craftar.net/api/v0/token/?api_key=123456789abcdefghijk123456789abcdefghijk&collection__uuid=806e54535ffd464f83545c902e664aca' |
Response
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
{ "objects": [ { "token": "1f894efc9b594c9c", "resource_uri": "/api/v0/token/1f894efc9b594c9c/", "collection": "/api/v0/collection/806e54535ffd464f83545c902e664aca/" } ], "meta": { "total_count": 1, "previous": null, "offset": 0, "next": null, "limit": 20 } } |