Skip to main content
POST
/
v1
/
client
/
tokens
Create Client Token
const options = {
  method: 'POST',
  headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({metadata: {}})
};

fetch('https://api.decart.ai/v1/client/tokens', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "apiKey": "<string>",
  "expiresAt": "<string>"
}

Authorizations

x-api-key
string
header
required

Headers

x-api-key
string
required

API key for authentication

Body

application/json
metadata
Metadata · object

Response

Successful Response

apiKey
string
required
expiresAt
string
required