Colossyan API Documentation
Authentication
Authentication
Colossyan's API is authenticated with a token sent with each request. Users with a Pro or Enterprise subscription can create API tokens in the app on the Settings page.
With each request you should send your token in the authorizationtoken
header.
- Note that the
authorizationtoken
is in all small caps.
Do not embed your token in any code that can reach the client. The token is only meant to be used in a secure server. Treat your token as sensitive information.
const token = "this-is-your-secret-token-keep-it-safe";const url = "https://app.colossyan.com/api/video-generation-jobs";const job = { /* ... */};
const result = await fetch(url, { method: "POST", headers: { authorizationtoken: token }, body: JSON.stringify(job),});