Account-scoped MCP endpoint
curl --request POST \
--url https://app.rookoo.ai/api/v1/accounts/{account_id}/mcp \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({jsonrpc: '2.0', id: 1, method: 'tools/list', params: {}})
};
fetch('https://app.rookoo.ai/api/v1/accounts/{account_id}/mcp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.rookoo.ai/api/v1/accounts/{account_id}/mcp"
payload = {
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"jsonrpc": "2.0",
"id": "<string>",
"result": {},
"error": {
"code": 123,
"message": "<string>",
"data": {}
}
}MCP
Account-scoped MCP endpoint
Streamable HTTP MCP endpoint for one account. Authenticate as a portal user with
api_access_token or an OAuth bearer JWT. The user must be a member of the account.
Tools are filtered by permissions. Agent bot tokens are not accepted.
POST
/
api
/
v1
/
accounts
/
{account_id}
/
mcp
Account-scoped MCP endpoint
curl --request POST \
--url https://app.rookoo.ai/api/v1/accounts/{account_id}/mcp \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({jsonrpc: '2.0', id: 1, method: 'tools/list', params: {}})
};
fetch('https://app.rookoo.ai/api/v1/accounts/{account_id}/mcp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.rookoo.ai/api/v1/accounts/{account_id}/mcp"
payload = {
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"jsonrpc": "2.0",
"id": "<string>",
"result": {},
"error": {
"code": 123,
"message": "<string>",
"data": {}
}
}Authorizations
This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.
Path Parameters
The numeric ID of the account
Body
application/json