Skip to main content
POST
cURL

Body

application/json
projectId
string
required

The ID of the project to create the proxied service in.

Minimum string length: 1
environment
string
required

The slug of the environment to create the proxied service in.

Minimum string length: 1
name
string
required

The name of the proxied service.

Required string length: 1 - 64
hostPattern
string
required

One or more comma-separated host patterns the service applies to, e.g. 'api.stripe.com, .stripe.com'. Each pattern is host[:port][/path]; a '.' wildcard matches exactly one label.

Required string length: 1 - 255
credentials
object[]
required

The credentials the agent proxy applies to requests matching the host pattern.

Minimum array length: 1
secretPath
string
default:/

The secret path (folder) to create the proxied service in.

isEnabled
boolean

Whether the proxied service is enabled. The agent proxy skips disabled services.

Response

Default Response

service
object
required