List your access tokens
GET
/api/tokens
const url = 'https://api-dev.wrktr.com/api/tokens';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api-dev.wrktr.com/api/tokens \ --header 'Authorization: Bearer <token>'Names, prefixes, when each was created and last used, and when it expires.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Success
Media typeapplication/json
Array<object>
object
Example
[ { "createdAt": "Infinity", "lastUsedAt": "Infinity", "expiresAt": "Infinity" }]Unauthorized
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "Unauthorized"}