Skip to content
Navigation

Store a connection credential

Stores a secret (an API key, a bot token) for this connection in the encrypted secret store. WRITE-ONLY: the value is never persisted by us, never echoed by any route, and never reaches the agent or its code sandbox — it is read only at call time, to authenticate the outbound request. The response carries the opaque reference. Re-posting the same purpose rotates the secret in place (the reference does not change). Authorization: space:contribute.

POST
https://api.cloudraker.com/spaces/{spaceId}/connections/{connectionId}/credentials
Try it
Path parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • spaceId
    string
    required
  • connectionId
    string
    required

Request body JSON required

  • purpose
    string
    required
    maxLength: 64 · minLength: 1
  • value
    string
    required
    minLength: 1
  • expiresAt
    optional
    string

Returns

200

The stored credential reference.

JSON
  • data
    object
    required
    • credentialRef
      string
      required
    • purpose
      string
      required

Type to search…

↑↓ navigate↵ selectEsc close