For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authentication

Code Ocean uses Access Tokens to authenticate requests. You can view and manage your access tokens from within your Dashboard under Access Tokens.

To create an Access Token

  1. Sign in to Code Ocean.

  2. Click Account.

  3. Click Access Tokens.

  4. Click Generate New Token.

  5. Provide the Token Name.

  6. Select Scopes allows you to select permissions for each resource.

  7. Click Add Token.

  8. Click Copy to copy the Token, or click Copy Token & Create Secret to copy the token and store it as a secret in your Code Ocean account.

  9. Click Save Changes.

To view an Access Token

  1. Navigate to Account.

  2. Click Access Tokens and a list of Access Tokens will be shown.

To delete an Access Token

  1. Next to the Token, click the garbage can .

  2. Click Delete.

Using an access token in API requests

cURL

The API uses HTTP Basic Authentication. Pass your access token as the username with an empty password.

The resulting Authorization header:

Python SDK

Use your access token when creating a CodeOcean client. The Python library will then automatically send this key in each request.

Last updated

Was this helpful?