curl --request GET \
--url https://api.testdino.com/api/public/v1/{projectId}/token-info \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"token": {
"id": "<string>",
"name": "<string>",
"type": "<string>",
"scopes": [
"<string>"
],
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"lastUsed": "2023-11-07T05:31:56Z",
"usageCount": 123
},
"project": {
"id": "<string>",
"name": "<string>"
},
"organization": {
"id": "<string>",
"name": "<string>"
},
"rateLimit": {
"limit": 123,
"window": "<string>"
}
}
}Confirm a PAT is valid and correctly scoped.
Returns the token’s scopes, expiry, and current rate-limit quota, along with the associated project and organization. Call this at the start of any integration to fail fast if credentials are missing or misconfigured.
curl --request GET \
--url https://api.testdino.com/api/public/v1/{projectId}/token-info \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"token": {
"id": "<string>",
"name": "<string>",
"type": "<string>",
"scopes": [
"<string>"
],
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"lastUsed": "2023-11-07T05:31:56Z",
"usageCount": 123
},
"project": {
"id": "<string>",
"name": "<string>"
},
"organization": {
"id": "<string>",
"name": "<string>"
},
"rateLimit": {
"limit": 123,
"window": "<string>"
}
}
}Was this page helpful?