mirror of
https://github.com/Infisical/infisical.git
synced 2026-05-02 03:02:03 -04:00
25 lines
1.3 KiB
Plaintext
25 lines
1.3 KiB
Plaintext
---
|
|
title: "Authentication"
|
|
---
|
|
|
|
To authenticate requests with Infisical, you can either use an API Key or [Infisical Token](../../../getting-started/dashboard/token); certain endpoints will accept either one or both.
|
|
- API Key: This general-purpose authentication token provides user access to most endpoints in this reference.
|
|
- [Infisical Token](../../../getting-started/dashboard/token): This authentication token (also referred to as the service token) is scoped to a specific project and environment and used for CRUD secret operations.
|
|
|
|
<AccordionGroup>
|
|
<Accordion title="API Key">
|
|
To authenticate requests with Infisical using the API Key, you must include an API key in the `X-API-KEY` header of HTTP requests made to the platform.
|
|
|
|
You can obtain an API key in User Settings > API Keys
|
|
|
|

|
|

|
|
</Accordion>
|
|
<Accordion title="Infisical Token">
|
|
To authenticate requests with Infisical using the Infisical Token, you must include your Infisical Token in the `Authorization` header of HTTP requests made to the platform with the value `Bearer st.<rest_of_your_infisical_token>`.
|
|
|
|
You can obtain an Infisical Token in Project Settings > Service Tokens.
|
|
|
|

|
|
</Accordion>
|
|
</AccordionGroup> |