Skip to main content
POST

Authorizations

Authorization
string
header
required

Telnyx API key

Path Parameters

instance_id
string<uuid>
required

The Agent Gateway's id.

Body

application/json
policy
string
required

The policy to apply, by name.

models
string[]

The models whose requests the policy applies to, by name. A name can use * as a wildcard. Empty applies the policy to every request.

priority
integer | null

An attachment with a priority applies before the others.

default
boolean
default:false

true applies the policy only to the requests no other attachment matches.

Response

The attachment

data
object
required

Where an instance applies a policy.