Tokens
List Tokens
Returns the account tokens
GET
/
v1
/
account
/
tokens
Authorization
const { setToken, Account } = require('@evecloud/sdk');
setToken('TOKEN');
Account.tokens.list().then((tokens) => {
console.log(tokens.data);
}).catch((error) => {
console.log(error);
});
{
"data": {
"created_at": "2023-03-02T13:45:30.152Z",
"expires_at": "2023-03-28T09:08:38.827Z",
"id": "2bb71bb9-2ca7-4473-95bf-6904bdf1fd35",
"label": "My Token",
"last_used": "2023-03-28T09:08:38.827Z",
"updated_at": "2023-03-28T09:08:38.827Z"
},
"meta": {
"limit": 10,
"page": 1,
"total": 1
}
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200 - application/json
data
object
meta
object
Was this page helpful?
const { setToken, Account } = require('@evecloud/sdk');
setToken('TOKEN');
Account.tokens.list().then((tokens) => {
console.log(tokens.data);
}).catch((error) => {
console.log(error);
});
{
"data": {
"created_at": "2023-03-02T13:45:30.152Z",
"expires_at": "2023-03-28T09:08:38.827Z",
"id": "2bb71bb9-2ca7-4473-95bf-6904bdf1fd35",
"label": "My Token",
"last_used": "2023-03-28T09:08:38.827Z",
"updated_at": "2023-03-28T09:08:38.827Z"
},
"meta": {
"limit": 10,
"page": 1,
"total": 1
}
}