cURL
OpenRouter
Create
Create an OpenRouter Connection.
POST
cURL
Documentation Index
Fetch the complete documentation index at: https://infisical-docs-self-host-infra.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Check out the configuration docs for OpenRouter Connections to learn how to obtain the required credentials.
Request body
| 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. |
Sample request
Sample response
Body
application/json
The method used to authenticate with OpenRouter.
Available options:
api-key The credentials used to connect with OpenRouter.
The name of the OpenRouter Connection to create. Must be slug-friendly.
Required string length:
1 - 64An optional description for the OpenRouter Connection.
Maximum string length:
256The ID of the project to create the OpenRouter Connection in.
Not supported for OpenRouter Connections.
Available options:
false Not supported for OpenRouter Connections.
Not supported for OpenRouter Connections.
Available options:
false Not supported for OpenRouter Connections.
Response
Default Response