Begin an external MCP OAuth connection
import requests
url = "https://eu.app.clarifeye.ai/api/v1/users/me/mcp-connections/initiate/"
payload = {
"url": "<string>",
"redirect_back_to": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', redirect_back_to: '<string>'})
};
fetch('https://eu.app.clarifeye.ai/api/v1/users/me/mcp-connections/initiate/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/users/me/mcp-connections/initiate/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"redirect_back_to": "<string>"
}
'{
"authorize_url": "<string>"
}{
"error": "User not found"
}{
"error": "Authentication credentials were not provided."
}External MCP
Begin an external MCP OAuth connection
Starts the OAuth authorization-code flow for an enabled OAuth MCP server the user can access. Returns the authorization URL for the frontend to open in a popup. Rate limited.
POST
/
users
/
me
/
mcp-connections
/
initiate
/
Begin an external MCP OAuth connection
import requests
url = "https://eu.app.clarifeye.ai/api/v1/users/me/mcp-connections/initiate/"
payload = {
"url": "<string>",
"redirect_back_to": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', redirect_back_to: '<string>'})
};
fetch('https://eu.app.clarifeye.ai/api/v1/users/me/mcp-connections/initiate/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/users/me/mcp-connections/initiate/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"redirect_back_to": "<string>"
}
'{
"authorize_url": "<string>"
}{
"error": "User not found"
}{
"error": "Authentication credentials were not provided."
}Authorizations
BearerAuthTokenAuth
Use Authorization: Bearer
Body
application/json
Response
Authorization URL