lockAuthentication

circle-info

You need to have a Business or Enterprise plan to be able to use our API. Check out our pricing page for more info.arrow-up-right

Colossyan's API is using Bearer Authenticationarrow-up-right. This means, that every request has to be authenticated by sending the token in the Authorization header pre-pended by the text Bearer . See the example below:

const response = await fetch(`${api}/video-generation-jobs`, {
  method: "POST",
  headers: {
    Authorization: `Bearer ${token}`, // Authentication
    "Content-Type": "application/json",
  },
  body: JSON.stringify(job),
});

You can create or find your existing tokens at the bottom of the Workspace details tab in the Settings pagearrow-up-right.

circle-info

Each token belongs to a specific workspace. This is where are the generated videos that you create through the API will be listed. To keep things tidy, it is recommended to create a specific workspace for each use-case for the API.

Last updated

Was this helpful?