Skip to main content
POST
cURL
Check out the configuration docs for LiteLLM Connections to learn how to obtain the required credentials.
Creates a LiteLLM app connection using a management-capable API key. The connection can then be used for LiteLLM API Key secret rotations.

Request body

Sample request

Sample response

Body

application/json
method
enum<string>
required

The method used to authenticate with LiteLLM.

Available options:
api-key
credentials
object
required

The credentials used to connect with LiteLLM.

name
string
required

The name of the LiteLLM Connection to create. Must be slug-friendly.

Required string length: 1 - 64
description
string | null

An optional description for the LiteLLM Connection.

Maximum string length: 256
projectId
string

The ID of the project to create the LiteLLM Connection in.

isPlatformManagedCredentials
enum<boolean>

Not supported for LiteLLM Connections.

Available options:
false
gatewayId

Not supported for LiteLLM Connections.

gatewayPoolId

Not supported for LiteLLM Connections.

isAutoRotationEnabled
enum<boolean>

Not supported for LiteLLM Connections.

Available options:
false
rotation

Not supported for LiteLLM Connections.

Response

Default Response

appConnection
LiteLLM (API Key) · object
required