Skip to main content
GET
/
user
/
custom_token
/
{name}
Retrieve Token
curl --request GET \
  --url https://api.edenai.run/v2/user/custom_token/{name}/ \
  --header 'Authorization: Bearer <token>'
{
  "name": "<string>",
  "token": "<string>",
  "token_type": "sandbox_api_token",
  "balance": 0,
  "active_balance": true,
  "expire_time": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

name
string
required

Response

200 - application/json
name
string
required

The token name

Maximum string length: 200
token
string | null
Maximum string length: 2000
token_type
enum<string>
  • sandbox_api_token - Sandbox
  • api_token - Back
Available options:
sandbox_api_token,
api_token
balance
number<double>

Optional remaining credits balance for this Token, if active_balance is set to True and the balance reaches 0, this token will become unusable

Required range: -100000 < x < 100000
active_balance
boolean

Weither to use the balance field or not.

expire_time
string<date-time> | null