API ReferenceAuthentication
Get current user session information
Retrieves detailed information about the current authenticated user session, including project details, organization membership, and API key information if applicable. This endpoint is useful for verifying authentication status and retrieving contextual information about the authenticated user and their access privileges.
Authorization
ApiKeyAuth x-api-key<token>
API key authentication
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://backend.composio.dev/api/v3/auth/session/info"{
"project": {
"auto_id": 12345,
"id": "550e8400-e29b-41d4-a716-446655440000",
"org_id": "550e8400-e29b-41d4-a716-446655440001",
"name": "Production API",
"email": "project-123@composio.dev",
"nano_id": "proj_abc123xyz456",
"created_at": "2023-05-16T14:30:00.000Z",
"updated_at": "2023-05-18T09:15:30.000Z",
"webhook_url": "https://example.com/webhook",
"event_webhook_url": "https://example.com/events",
"webhook_secret": "whsec_a1b2c3d4e5f6g7h8i9j0",
"triggers_enabled": true,
"last_subscribed_at": "2023-05-17T10:00:00.000Z",
"deleted": false,
"is_new_webhook": true,
"webhook_version": "V2",
"org": {
"id": "org_abc123xyz456",
"name": "Acme Corp",
"plan": "BUSINESS"
}
},
"api_key": {
"auto_id": 7890,
"id": "550e8400-e29b-41d4-a716-446655440003",
"name": "Development Key",
"project_id": "proj_abc123xyz456",
"org_member_id": "550e8400-e29b-41d4-a716-446655440002",
"created_at": "2023-05-01T10:00:00.000Z",
"updated_at": "2023-05-01T10:00:00.000Z",
"deleted_at": "string",
"key": "sk_live_abc123xyz456",
"deleted": false
},
"org_member": {
"id": "550e8400-e29b-41d4-a716-446655440002",
"email": "user@example.com",
"name": "John Doe",
"role": "admin"
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}