Skip to content

The credential must be a secret the tenant holds; its value is never read here. A put under an existing name replaces the option, and every install that names it follows.

PUT
/inferences/{id}
curl --request PUT \
--url https://api.canopyhq.dev/inferences/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "compact_at": 1, "provider": "simulated", "retry": { "attempts": 1, "backoff": "example" } }'
id
required
string

The name the tenant gives the option; installs select it by this.

Media typeapplication/json
One of:
object
compact_at

Compact before the next inference at this absolute prompt-token count; defaults to 100000.

integer format: int64
provider
required
string
Allowed values: simulated
retry
object
attempts
required

Retry.attempts: 1..=10

integer
>= 1 <= 10
backoff
required

100ms..=1m

string

The outcome is replaced or unchanged; every install that names it follows.

Media typeapplication/json

The result of writing a named resource, without returning its value.

object
outcome
required

The result of applying a resource write at the door.

string
Allowed values: created replaced unchanged
Example
{
"outcome": "created"
}

The option now exists under this tenant.

Media typeapplication/json

The result of writing a named resource, without returning its value.

object
outcome
required

The result of applying a resource write at the door.

string
Allowed values: created replaced unchanged
Example
{
"outcome": "created"
}

An invalid body returns an error naming the field and reason; the option may also name a secret the tenant does not hold.

No console token, or one that did not verify.

Only an owner of the tenant may configure it.