Publish Agent Version

post/v1/agent-versioning/versions

Request

  • Base URL: https://api.decagon.ai
  • URL: https://api.decagon.ai/v1/agent-versioning/versions
  • Auth: HTTP bearer

Headers

Idempotency-Keystring nullable

Unique key for this submission within the team. Reuse it only to retry the same request.

Request body

staging_commit_shastring required

40-character lowercase hexadecimal Git SHA of the staging main branch version to publish.

descriptionstring required

Commit message for this publish (maximum 1000 characters).

Response

Successful Response

idstring required

Opaque identifier for the agent version.

labelstring required

Version label, derived from the version sequence.

descriptionstring nullable required

Commit message associated with the agent version.

commit_shastring required

Git commit SHA the agent version was created from.

created_atstring date-time required

Time when the agent version was created.

percent_trafficinteger required

Percentage of traffic assigned to this version.

Changes

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