---
title: "Create a credential under an auth scope"
method: POST
path: "/v1/fleet/auth-scopes/{scope_slug}/credentials"
tags: ["fleet credentials"]
---

# Create a credential under an auth scope

`POST /v1/fleet/auth-scopes/{scope_slug}/credentials`

Registers a credential (e.g. a static bearer token) under an auth scope and binds it to one or more targets such as MCP servers. The response never includes the secret token.

## Path parameters

- `scope_slug` string, required

## Response `201`

Created

- CredentialsResponse
  - `auth_type` string
  - `bindings` CredentialsBindingPayload[]
    - `kind` 'mcp_server', required
    - `url` string, required
  - `created_at` string
  - `description` string
  - `display_name` string
  - `id` string
  - `scope_slug` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.net/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.net/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
