Security Configurations
Choreo Integration lets you configure authentication for integrations deployed as Integration as APIs or AI Agents. Each endpoint is secured with exactly one scheme at a time: API key or OAuth.
Supported security schemes
| Scheme | Default header | Description |
|---|---|---|
| API key | X-API-Key | Clients include a static key in a request header. Simple to set up and suitable for service-to-service calls. |
| OAuth | Authorization | Clients obtain an access token and include it as a Bearer token. |
The security header name is customizable for either scheme.
Configure security
-
Open your integration from the project home.
-
On the integration overview page, click Configure security in the top-right corner.

-
If the integration exposes more than one endpoint, pick one from the Endpoints list.
-
Select the Security scheme: API key or OAuth.

With OAuth, you also configure a token prefix, the key manager that must have issued the token, optional audiences, whether to forward the token to the backend, and per-operation scopes. See Configure security for an integration as an API for the full OAuth field reference.
-
Click Apply to save the changes.
Changes apply immediately to the Development environment. To apply them to other environments, promote the integration.
Consume a secured API
You can test the secured endpoint by navigating to the Test > Console page in left navigation.
To consume the API from an external client, first obtain a credential for the enabled scheme from the Developer Portal.
The Developer Portal needs to be created and set up from Choreo APIM.
API Key
-
In the integration overview, click Developer Portal.
-
Subscribe to the API by selecting or creating an application.
-
In your application, click Generate Key under the API Key column.
-
Copy the generated key and include it in the configured security header of your requests:
curl --request GET \--url <endpoint_url> \--header 'api-key: <your_api_key>'
OAuth2
-
In the integration overview, click Developer Portal.
-
Subscribe to the API by selecting or creating an application.
-
In your application, click Generate Key under the OAuth2 section.
-
Use the generated credentials to obtain an access token, then include it as a Bearer token:
curl --request GET \--url <endpoint_url> \--header 'Authorization: Bearer <access_token>'
What's next
- Endpoint configurations — Configure endpoint visibility levels per environment.
- Scaling — Configure autoscaling for your integration.
Was this page helpful?