Skip to main content
POST
/
generate-mcp-token
curl --location 'https://api.mcpfy.ai/dev/v1/generate-mcp-token' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--data-raw '{
    "mcpServerId": "63re68ca47d201fa9d2974fa",
    "customerDetails": {
      "primaryIdentity": "[email protected]"
    }
  }'
{
  "status": "success",
  "data": {
    "url": "https://mcp.mcpfy.ai/5ftIjklywsiC9u6rMG45Xgtxzq1SAsFv/stream",
    "token": "5ftIjklywsiC9u6rMG45Xgtxzq1SAsFv",
    "customerId": "68d1a6ccdde500225e8cd70c"
  }
}
curl --location 'https://api.mcpfy.ai/dev/v1/generate-mcp-token' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--data-raw '{
    "mcpServerId": "63re68ca47d201fa9d2974fa",
    "customerDetails": {
      "primaryIdentity": "[email protected]"
    }
  }'
{
  "status": "success",
  "data": {
    "url": "https://mcp.mcpfy.ai/5ftIjklywsiC9u6rMG45Xgtxzq1SAsFv/stream",
    "token": "5ftIjklywsiC9u6rMG45Xgtxzq1SAsFv",
    "customerId": "68d1a6ccdde500225e8cd70c"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

MCP server ID and customer details for URL generation

mcpServerId
string
required

The unique identifier for the MCP server

Example:

"63re68ca47d201fa9d2974fa"

customerDetails
object
required

Response

MCP URL generated successfully

status
enum<string>

Indicates whether the request was successful

Available options:
success,
error
Example:

"success"

data
object
error
object