Description

This endpoint creates a new credential for a tool.

Endpoint

POST /v3/tools/credentials

Authentication

API Key (x-api-key) must be included in the header.

Request Body

{
  "name": "string",
  "provider_id": "string",
  "credentials": {},
  "meta_data": {}
}

Response

A message confirming that the credential was created.

Example Request

curl -X POST "https://agent-prod.studio.lyzr.ai/v3/tools/credentials" ^
-H "accept: application/json" ^
-H "content-type: application/json" ^
-H "x-api-key: sk-default-EXAMPLEKEY123" ^
-d "{\"name\":\"string\",\"provider_id\":\"string\",\"credentials\":{},\"meta_data\":{}}"