Automation

Create one least-authority project credential

Owner-only and requires a stable Idempotency-Key. The raw value remains hash-only and is returned exactly once; an exact lost-response retry names the already-created credential and never mints another active secret. automation_runner requires an exact saved automation_id.

post/v1/projects/{project_id}/credentials

Request

  • Base URL: https://api.agentry.sh
  • URL: https://api.agentry.sh/v1/projects/{project_id}/credentials
  • Auth: HTTP bearer

Path parameters

project_idstring required

Headers

Idempotency-Keystring required

Stable 8-500 character command key. Preserve it only when replaying the exact same request; use a new key for a distinct command.

Request body

kind'ci_deploy' | 'automation_runner' required
namestring required
automation_idstring
expires_in_secondsinteger

Response

OK

idstring required
project_idstring required
kind'ci_deploy' | 'automation_runner' required
namestring required
prefixstring required
scopesstring[] required
automation_idstring nullable
created_bystring
created_atinteger required
expires_atinteger required
last_used_atinteger nullable
revoked_atinteger nullable
revoke_reasonstring nullable
activeboolean required
credentialstring required
env_var'AGENTRY_CI_API_KEY' | 'AGENTRY_RUNNER_API_KEY' required
runner_idstring nullable
idempotent_replayboolean required
next_actionstring required

Changes

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