ChatofyDevelopers
REST APIMCP Server (AI)New
API KeysWebhooks
Chatofy API
/
Getting Started
API Resources
API v1.0 Live
Developer APIModel Context Protocol (MCP)MCP OAuth User & Workspace Info

MCP OAuth User & Workspace Info

Returns the identity, active organization ID, and workspace name associated with the authenticated Bearer access token.

GET/api/mcp/oauth/userinfo

Response Payload

200 OKapplication/json
statusstring

"1" = Success, "0" = Failure.

messageobject

The response data payload.

Code Snippets & Examples

1curl -X GET "https://app.chatofy.in/api/mcp/oauth/userinfo" \
2 -H "Authorization: Bearer YOUR_API_KEY"

Was this endpoint guide helpful?

Previous Endpoint
MCP OAuth 2.0 PKCE Token Exchange
Documentation
All Endpoints
© 2026 Chatofy Cloud Platform. All rights reserved.
1curl -X GET "https://app.chatofy.in/api/mcp/oauth/userinfo" \
2 -H "Authorization: Bearer YOUR_API_KEY"
200 OKapplication/json
1{
2 "sub": "usr_01928374-65ab-7cde-8f01-234567890abc",
3 "organization_id": 42,
4 "organization_name": "Acme WhatsApp Solutions",
5 "key_id": "key_01928374-65ab-7cde-8f01-234567890abc",
6 "scope": "all",
7 "token_type": "Bearer"
8}