Join us May 13th & May 14th at Interrupt, the Agent Conference by LangChain. Buy tickets >
curl --request POST \
--url https://api.smith.langchain.com/v1/deepagents/auth-scopes/{scope_slug}/credentials \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"display_name": "Search API token",
"description": "Bearer token for the MCP search server.",
"auth": {
"type": "static_bearer",
"token": "<SECRET_TOKEN>"
},
"bindings": [
{
"kind": "mcp_server",
"url": "https://tools.langchain.com"
}
]
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scope_slug": "default",
"display_name": "<string>",
"description": "<string>",
"auth_type": "static_bearer",
"bindings": [
{
"kind": "mcp_server",
"url": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z"
}Register a credential under an auth scope and bind it to one or more targets such as MCP servers. The response never includes the secret token.
curl --request POST \
--url https://api.smith.langchain.com/v1/deepagents/auth-scopes/{scope_slug}/credentials \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"display_name": "Search API token",
"description": "Bearer token for the MCP search server.",
"auth": {
"type": "static_bearer",
"token": "<SECRET_TOKEN>"
},
"bindings": [
{
"kind": "mcp_server",
"url": "https://tools.langchain.com"
}
]
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scope_slug": "default",
"display_name": "<string>",
"description": "<string>",
"auth_type": "static_bearer",
"bindings": [
{
"kind": "mcp_server",
"url": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z"
}Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
Auth scope slug. Currently only default is supported.
default Credential created. The secret token is not returned.
Was this page helpful?