> For the complete documentation index, see [llms.txt](https://help.cerby.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.cerby.com/developer-tools/cerby-api/retrieve-a-bearer-token.md).

# Retrieve a bearer token

This article describes how to retrieve a bearer token to use in the Cerby CLI.

{% hint style="info" %}
**Who can use this feature?**

* Workspace **Owners**, **Super Admins**, and **Admins**
* Only supported using the Cerby web app
  {% endhint %}

As a workspace **Owner**, **Super Admin**, or **Admin**, you can retrieve a bearer token to authenticate requests to the Cerby CLI.

{% hint style="danger" %}
**IMPORTANT:** Never share your bearer token with other users or store it in a visible place. Bearer tokens expire after one hour by default.
{% endhint %}

To retrieve a bearer token, complete the following steps:

1. Log in to your [Cerby](https://app.cerby.com/) workspace.
2. Click your user profile icon at the top right of the page. A drop-down list is displayed.
3. Select the **My Profile** option. The **My Profile** page is displayed.
4. Select the **Dev Tools** tab. The **Developer tools** section is displayed.
5. Click the **Copy token** button. Your bearer token is copied to the clipboard.

You can start using the bearer token to [authenticate and log in to the Cerby CLI](/developer-tools/cerby-cli/authenticate-with-the-cerby-cli.md#h-7e37d0e3a8).

Now you are done.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.cerby.com/developer-tools/cerby-api/retrieve-a-bearer-token.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
