Agents

Register an agent and receive an API key

Creates one-time-visible agent credentials. For an existing ownerEmail and agentName identity, the current recoveryToken is required and both credentials are rotated; the previous API key is invalidated and never revealed.

post/api/v1/agent-register

Request

  • Base URL: https://senlay.cloud
  • URL: https://senlay.cloud/api/v1/agent-register
  • Auth: none declared

Request body

ownerEmailstring email
agentNamestring required
recoveryTokenstring

Required only to rotate credentials for an existing ownerEmail and agentName identity.

purposestring

Response

Agent credentials created or rotated

successboolean
apiKeystring

Returned only on initial registration or authorized rotation; save it securely.

keyPreviewstring
recoveryTokenstring

Returned only on initial registration or authorized rotation; save it separately from the API key.

agentNamestring
existingboolean
rotatedboolean
messagestring

Changes

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