---
title: "Authentication"
description: "Send the workspace API token in the Authorization header of every request: Authorization: Bearer <token>."
url: https://help.officelycrew.com/developers/authentication
product: developers
product_name: Developers
type: guide
platforms: [slack, teams]
private_beta: "The Officely Crew API is in private beta. Want in? [Contact support](/account/contact-support) to ask to join, and we'll turn on API tokens for your workspace. Once it's on, Account Admins see the API token setting under **Account & Billing**."
audience: [developer, account-admin]
updated: 2026-11-30
verified: 2026-11-30
errors:
  - "A valid API token is required."
  - "A bearer token is required."
related:
  - https://help.officelycrew.com/account/api
  - https://help.officelycrew.com/developers/quickstart
  - https://help.officelycrew.com/developers/errors
---
# Authentication

> **Private beta.** The Officely Crew API is in private beta. Want in? [Contact support](https://help.officelycrew.com/account/contact-support) to ask to join, and we'll turn on API tokens for your workspace. Once it's on, Account Admins see the API token setting under **Account & Billing**.

Send the workspace API token in the `Authorization` header of every request: `Authorization: Bearer <token>`.

```sh
curl https://api.officelycrew.com/v1/offices \
  -H "Authorization: Bearer $OFFICELY_API_TOKEN"
```

## Address

The API is at `https://api.officelycrew.com`. Integrations built on the earlier address, `https://api.getofficely.com`, keep working for now: move them to `https://api.officelycrew.com` when you can. Tokens, endpoints, limits and errors are the same on both.

## Tokens

An Account Admin [creates the token](https://help.officelycrew.com/account/api). The token identifies the workspace, so there's no workspace or account ID to send.

| Rule | Detail |
| --- | --- |
| Tokens per workspace | One active token at a time. Revoke it before creating a replacement |
| Name | 1 to 80 characters, for example "reporting" |
| Seeing the token | Shown once, when it's created. We store only a hash of it |
| Scope | The workspace that created it. Read-only |
| Availability | Private beta. To join, [contact support](https://help.officelycrew.com/account/contact-support) and ask for API tokens to be turned on for your workspace |

The token can read reports for the whole workspace. Office, team and person filters narrow the results, not what the token can read.

## Keep it safe

- Keep tokens out of URLs, query strings, shared documents, tickets and front-end code.
- Store it in a password manager or your integration's secret store.
- If it leaks, revoke it straight away and create a new one. Anything using the old token stops working.

## Replace a token

Only one token can be active, so replacing it means a short gap. Revoke the old token, create a new one, then update your integration.

## When the token is wrong

An invalid or revoked token gets `401`:

```json
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "A valid API token is required."
  }
}
```

A request without an `Authorization: Bearer` header also gets `401 UNAUTHORIZED`, with the message "A bearer token is required."

## Interactive docs

The [interactive docs](https://api.officelycrew.com/docs) at `/docs` list every endpoint and parameter. Select **Authorize**, paste the token without `Bearer`, then use **Try it out**. The token stays in the page's memory and is gone when you reload.

## Calling from a browser

Browser requests are allowed only from Swagger Editor at `https://editor.swagger.io`, which can load `/openapi.json` and make GET requests. Other browser origins get no CORS permission, so call the API from a server or script, not from a web page.
