credits

Create credit currency

Creates a credit currency for the organization.

post/credits/currencies

Request

  • Base URL: https://api.agentpaid.io/api/v2
  • URL: https://api.agentpaid.io/api/v2/credits/currencies
  • Auth: HTTP bearer

Request body

namestring required

Human-readable name shown for this credit currency.

keystring required

Stable machine-readable key for this credit currency. Use lowercase letters, numbers, underscores, and hyphens. Keys are unique within an organization.

descriptionstring nullable

Optional description for this credit currency.

Response

201

idstring required

Unique identifier for this credit currency.

namestring required

Human-readable name shown for this credit currency.

keystring required

Stable machine-readable key for this credit currency. Keys are unique within an organization.

status'active' | 'archived' required

Whether this credit currency is active or archived.

descriptionstring nullable required

Optional description for this credit currency.

archivedAtstring date-time nullable required

When this credit currency was archived. Null means the currency is active.

createdAtstring date-time required

When this credit currency was created.

updatedAtstring date-time required

When this credit currency was last updated.

Changes

No recorded changes to this operation across all 1 revision of this API.