Simplio3D

API Tokens

Generate and manage API tokens for programmatic access. Tokens can be used as an alternative to JWT session tokens.

Generate API Token

POST/api-token
const response = await fetch(BASE_URL + '/api-token', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer ' + accessToken }
});

const data = await response.json();
// { "success": true, "token": "550e8400-e29b-41d4-a716-446655440000" }

Get Current Token

GET/api-token
const response = await fetch(BASE_URL + '/api-token', {
  headers: { 'Authorization': 'Bearer ' + accessToken }
});

Regenerate Token

POST/api-token/regenerate
const response = await fetch(BASE_URL + '/api-token/regenerate', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer ' + accessToken }
});

Token Security

API tokens provide full access to your account. Keep them secure, never commit them to version control, and regenerate immediately if compromised.

Continue reading