Skip to main content
POST
/
credential
Create a new credential
curl --request POST \
  --url https://api.example.com/credential/ \
  --header 'Content-Type: application/json' \
  --header 'x-user-id: <x-user-id>' \
  --data '{
  "data": {}
}'
{
  "credential_id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.agentscope.io/llms.txt

Use this file to discover all available pages before exploring further.

Headers

x-user-id
string
required

Caller's user ID. Temporary header-based identity; will be replaced by JWT auth.

Body

application/json

Request body for creating a new credential.

data
Data · object
required

Credential payload (e.g. API keys).

Response

Successful Response

Response body after creating a credential.

credential_id
string
required

Server-assigned credential identifier.