Get Instance Auth
curl --request GET \
--url https://api.klavis.ai/mcp-server/instance/{instanceId}/auth \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.klavis.ai/mcp-server/instance/{instanceId}/auth"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.klavis.ai/mcp-server/instance/{instanceId}/auth', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.klavis.ai/mcp-server/instance/{instanceId}/auth', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"authData": {},
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Instance Auth / OAuth
Get Instance Auth
Retrieves the auth data for a specific integration instance that the API key owner controls. Includes access token, refresh token, and other authentication data.
This endpoint includes proper ownership verification to ensure users can only access authentication data for integration instances they own. It also handles token refresh if needed.
GET
/
mcp-server
/
instance
/
{instanceId}
/
auth
Get Instance Auth
curl --request GET \
--url https://api.klavis.ai/mcp-server/instance/{instanceId}/auth \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.klavis.ai/mcp-server/instance/{instanceId}/auth"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.klavis.ai/mcp-server/instance/{instanceId}/auth', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.klavis.ai/mcp-server/instance/{instanceId}/auth', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"authData": {},
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Your Klavis AI API key.
Path Parameters
The ID of the connection integration instance to get auth data for.
Response
Successful Response
