McpTokens_createPat
POST
/api/mcp/tokens
const url = 'https://met.cards/api/mcp/tokens';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","scopes":["read"],"expiresInDays":30,"password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://met.cards/api/mcp/tokens \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "scopes": [ "read" ], "expiresInDays": 30, "password": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
scopes
required
Array<string>
expiresInDays
required
number
password
string
Responses
Section titled “Responses”Media typeapplication/json
object
Examplegenerated
{}