tokens
Create a service token
Changed onCreate a service token for machine-to-machine authentication. Accepts API key or bearer token. Optionally apply restrictions.
post/tokens
Request
- Base URLhttps://api.smithery.ai
- URLhttps://api.smithery.ai/tokens
- AuthHTTP bearer
Request body
Example request
{
"policy": [
{
"rpcReqMatch": {
"params.name": "^(create_issue|search_issues)$"
}
}
],
"organizationId": "org_01H1234567890"
}Response
Token created successfully
Example response
{
"expiresAt": "2024-01-01T01:00:00.000Z"
}Changes
- info
added the new optional request property
- info
- warning
removed the request property
- warning