We use cookies to understand how people use Depot.
🚀 Introducing Ultra Runners — Up to 3x faster GitHub Actions jobs
← Back to changelog

Now available in the Depot API is the ability to manage project tokens for all your projects. You can create, list, and delete project tokens via the API.

To create a new project token, you can use the following API example from our Node SDK:

const headers = {Authorization: `Bearer ${process.env.DEPOT_TOKEN}`}
 
const result = await depot.core.v1.ProjectService.createToken(
  {
    projectId: 'project-id',
    description: 'my-token',
  },
  {headers},
)

See our API reference for docs on all of the Depot API endpoints.