User

Create User Api Key

Create a user or agent PAT (ecosystem identity, project_id=1 in JWT).

post/api/user/api-keys

Request

  • Base URL: https://api.agentstack.tech (the document declares no server; this is the origin it was published from)
  • URL: https://api.agentstack.tech/api/user/api-keys
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Headers

Idempotency-Keystring nullable

Request body

namestring required

Name for the API key

expires_atstring nullable

Expiration date (ISO 8601 format)

actor_kind'user' | 'agent'

user = acts as you; agent = scoped agent

presetstring nullable

agent_runner | readonly_data | commerce_bot | full_project | user_full

service_capsstring[] nullable

Explicit cap allowlist; overrides preset

project_idinteger nullable

Pin for agent keys when resource_scope omitted

confirm_agent_all_accessibleboolean

Required when actor_kind=agent and resource_scope is all_accessible

Response

Successful Response

key_idstring required
api_keystring required
namestring required
created_atstring required
expires_atstring nullable required
statusstring required
actor_kindstring nullable
resource_scopeobject nullable
service_capsstring[] nullable
presetstring nullable

Changes

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