MCPBundler Docs
MCPBundler Docs
Back to marketplaceGetting StartedAuthenticationTutorial - Bundle to Connected Agent
API Reference
Auth
Bundler
Bundles
Catalog
Deployments
Discover
LLM
MCP Listing Claims
MCP Listings
OAuth2
Get OAuth Session MetadataInitiate OAuth2 FlowOAuth2 CallbackRevoke OAuth Session
Observability
Organisations
Reviews
Roadmap
SCIM
Users
Utils
Vault
Webhooks
API ReferenceOAuth2

Get OAuth Session Metadata

GET
/v1/oauth2/sessions/{deployment_id}/{entry_id}

Return non-sensitive metadata about a stored OAuth session, if any.

Never exposes the access/refresh tokens themselves - only whether a session is connected, the bound account email, granted scope, and expiry, for display in the deployment's connection status UI.

Args: deployment_id: Deployment the entry belongs to. entry_id: Bundle entry (MCP) whose OAuth session to inspect. session: Database session. context: Caller's security context; the caller must own the deployment.

Returns: Session metadata, or connected=False if no session exists yet.

Authorization

OAuth2AuthorizationCodeBearer
AuthorizationBearer <token>

In: header

Path Parameters

deployment_id*Deployment Id
Formatuuid
entry_id*Entry Id
Formatuuid

Query Parameters

verify_locally?Verify Locally
Defaulttrue

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/oauth2/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "entry_id": "31513983-613b-4481-b270-ae929f358bae",  "email": "string",  "scope": "string",  "expires_at": "2019-08-24T14:15:22Z",  "connected": true}
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}

OAuth2

Endpoints in the OAuth2 group.

Initiate OAuth2 Flow

Next Page