> For the complete documentation index, see [llms.txt](https://docs.abtasty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.abtasty.com/server-side/remote-control-api/authorization.md).

# Authorization

### Create an access

In your Feature Experimentation account, go to [**Settings > Feature Experimentation > Remote Control API**](https://app2.abtasty.com/settings/feature-experimentation/remote-control-api)

<figure><img src="https://233132171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBWu23t7Qv6wLLh6Hl5b4%2Fuploads%2FS3K4lDxV7hzuK3BlpQtZ%2FCapture%20d%E2%80%99e%CC%81cran%202026-02-16%20a%CC%80%2011.35.35.png?alt=media&amp;token=7efa7c9d-eeac-4f1e-bb07-4303453f7f7b" alt=""><figcaption></figcaption></figure>

You will need to fill :

* An access name
* Select one or several environments (or let empty to select all your environments)
* Select one or several actions to authorize

When you're done, click on Generate and you will see the following modal :

<figure><img src="https://233132171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBWu23t7Qv6wLLh6Hl5b4%2Fuploads%2FmuASbf5oHahCIZjUgvgS%2FCapture%20d%E2%80%99e%CC%81cran%202026-02-16%20a%CC%80%2011.38.06.png?alt=media&amp;token=27bc681c-2473-40d5-9ffc-f402a4ab7307" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
Save your Client id and Client secret now as they will be needed to generate a token.\
For security reasons, they cannot be retrieved again after you close this dialog.
{% endhint %}

### Generate a token

After generating your access credentials, you need to generate a token to authenticate your API calls.&#x20;

To generate a token you will need to do the following request. Or you can use the online generator [here](https://github.com/flagship-io/Gitbook/blob/main/remote-control-api/broken-reference/README.md):

You will find your **ACCOUNT\_ID** in Settings > Account section.

```curl
curl --location --request POST 'https://auth.flagship.io/{ACCOUNT_ID}/token?expires_in=0' \
--header 'Content-Type: application/json' \
--data-raw '{
    "grant_type": "client_credentials",
    "scope": "*",
    "client_id": "{CLIENT_ID}",
    "client_secret": "{CLIENT_SECRET}"
}'
```

**Expiration time :**

You can define the token expiration time. For example, to create a token with an expiration time of 1800 seconds, call :\
`POST https://auth.flagship.io/{ACCOUNT_ID}/token?expires_in=1800`

You now have a valid token with the list of actions you selected previously.

You can verify that your token is valid by making the following request :

```curl
curl --location --request GET 'https://auth.flagship.io/token?access_token={ACCESS_TOKEN}' \
--data-raw ''
```

### Revoke an access

You can preview or revoke your created access in the panel located below the access creation panel.

<figure><img src="https://233132171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBWu23t7Qv6wLLh6Hl5b4%2Fuploads%2FHtsRkkEWNkVVq14WNoxx%2FCapture%20d%E2%80%99e%CC%81cran%202026-02-16%20a%CC%80%2011.56.57.png?alt=media&amp;token=aec4aa7a-3ede-4a45-b1ad-a3bfa1e53c9b" alt=""><figcaption></figcaption></figure>


---

# 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://docs.abtasty.com/server-side/remote-control-api/authorization.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.
