KeyCreate

Generated from the central API contract. Availability and permissions are checked by the connected service.

Field

Type / accepted values

Required

Default

Constraints / meaning

name

string

Yes

Omitted

minLength: 1; maxLength: 120

scopes

array of string

Yes

Omitted

minItems: 1; maxItems: 15

project_ids

array of string (uuid)

No

Omitted

maxItems: 50

expires_days

integer

No

90

minimum: 1.0; maximum: 366.0

budget_per_job_credits

number or null

No

Omitted

minimum: 0.0; maximum: 1000000.0

budget_per_day_credits

number or null

No

Omitted

minimum: 0.0; maximum: 1000000.0

budget_per_month_credits

number or null

No

Omitted

minimum: 0.0; maximum: 1000000.0; Monthly spend cap in credits. Omitted: the default agent budget (20 credits). Null (no cap) is allowed only from a signed-in person’s session.

retry_allowance

integer

No

0

minimum: 0.0; maximum: 10.0; Extra builds of one surface (reruns or automatic rebuilds) this credential may start without a person. 0, the default, means it must ask. Only a person in Studio can raise it.

Omission and explicit null are different. Defaults shown are schema defaults; validators may resolve conditional defaults or reject incompatible combinations. See the workflow guide and validate the complete request before submission.