docs/api-reference/endpoints/app-connections/openrouter/create.mdx
Creates an OpenRouter app connection using a Provisioning API key. The connection can then be used for OpenRouter API Key secret rotations.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | A unique name for the connection. |
method | string | Yes | Must be "api-key". |
projectId | string (UUID) | Yes | The project ID to attach the connection to. |
credentials.apiKey | string | Yes | Your OpenRouter Provisioning API key. |
curl --request POST \
--url https://app.infisical.com/api/v1/app-connections/open-router \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--data '{
"name": "my-openrouter-connection",
"method": "api-key",
"projectId": "<project-id>",
"credentials": {
"apiKey": "<YOUR-PROVISIONING-API-KEY>"
}
}'
{
"appConnection": {
"id": "<connection-id>",
"name": "my-openrouter-connection",
"projectId": "<project-id>",
"description": null,
"version": 1,
"orgId": "<org-id>",
"createdAt": "<ISO8601>",
"updatedAt": "<ISO8601>",
"isPlatformManagedCredentials": false,
"credentialsHash": "...",
"app": "openrouter",
"method": "api-key",
"credentials": {}
}
}