tokens
Create a service token
Create a service token for machine-to-machine authentication. Accepts API key or bearer token. Optionally apply restrictions.
POST
JavaScript
Documentation Index
Fetch the complete documentation index at: https://smithery.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Smithery API key as Bearer token
Body
application/json
Constraint objects to restrict the token. Each constraint may include a ttl field (max 24 hours). Default TTL is 1 hour. Maximum is 24 hours.
Minimum array length:
1Optional organization ID to scope the token to. When provided, the token is minted with org context. The authenticated user must be an admin or owner of the organization.
Example:
"org_01H1234567890"
Previous
Get user's namespaces or search namespacesWhen called without query params, returns the authenticated user's namespaces (backwards compatible). When query params are provided, searches public namespaces with pagination. Use ownerId to filter by owner, hasServers/hasSkills to filter by content, q for text search.
Next
JavaScript