Skip to main content
POST
Create a custom API provider

Authorizations

Authorization
string
header
required

Locus Pro dashboard session (Cognito).

Body

application/json
slug
string
required

Stable provider name. The public catalog name is custom-{slug}.

Pattern: ^[a-z0-9][a-z0-9-]{1,62}[a-z0-9]$
name
string
required
Required string length: 1 - 80
baseUrl
string<uri>
required

HTTPS upstream origin validated against SSRF and private-network controls.

Maximum string length: 2048
auth
object
required

For type=none, omit credential. For type=header or type=query, supply name.

description
string
Maximum string length: 500
traffic
object
endpoint
object
endpoints
object[]

Use endpoint or endpoints, never both. Slugs must be unique within the request.

Required array length: 1 - 50 elements

Response

Provider and any supplied actions created

success
any
required
provider
object
required