curl --request GET \
--url https://api.cnap.tech/v1/user/tokens \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "j572abc123def456",
"name": "My CLI token",
"prefix": "cnap_pat_a3b2",
"created_at": 1708000000,
"last_used_at": 123,
"expires_at": 123
}
],
"pagination": {
"cursor": "<string>",
"has_more": true
}
}Returns metadata for all tokens. Full token values are never shown after creation.
curl --request GET \
--url https://api.cnap.tech/v1/user/tokens \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "j572abc123def456",
"name": "My CLI token",
"prefix": "cnap_pat_a3b2",
"created_at": 1708000000,
"last_used_at": 123,
"expires_at": 123
}
],
"pagination": {
"cursor": "<string>",
"has_more": true
}
}Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://dash.cnap.tech/account/tokens
Pagination cursor from previous response
Items per page (1-100)
1 <= x <= 10050