Tokens
Create Token
Creates a new account token
POST
/
v1
/
account
/
tokens
Authorization
Body
const { setToken, Account } = require('@evecloud/sdk');
setToken('TOKEN');
Account.tokens.create('LABEL', 'No expiration').then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
{
"expires_at": "2023-03-28T09:08:38.827Z",
"id": "2bb71bb9-2ca7-4473-95bf-6904bdf1fd35",
"label": "My Token",
"token": "g543hb453hg453h345hg45h345"
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
expiration
enum<string>
The token expiration date.
Available options:
1 Day
, 7 Days
, 30 Days
, 60 Days
, 90 Days
, 180 Days
, 1 Year
, No expiration
label
string
The token label.
Response
200 - application/json
expires_at
string
The token expires at date.
id
string
The token ID.
label
string
The token label.
token
string
The token.
Was this page helpful?
const { setToken, Account } = require('@evecloud/sdk');
setToken('TOKEN');
Account.tokens.create('LABEL', 'No expiration').then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
{
"expires_at": "2023-03-28T09:08:38.827Z",
"id": "2bb71bb9-2ca7-4473-95bf-6904bdf1fd35",
"label": "My Token",
"token": "g543hb453hg453h345hg45h345"
}