Dashboard
APIGet Membership API - View a Single Subscription | BotSubscription
api.botsubscription.com
GET/v1/endpoint
AuthenticationBearer
Token
Stays in this tab. Required for this endpoint — the value below is what gets sent.
Mock
curl --request GET \
  --url https://api.botsubscription.com/v1/endpoint \
  --header 'Authorization: Bearer sk_live_•••'

Get Membership - View a Single Subscription via API

Fetch a single membership record by its ID, including the plan, start and end dates, and—for recurring memberships—the underlying subscription status.

GET/v2/projects/{project_id}/memberships/{membership_id}

Authorization

Bearer TokenRequired

Requires the memberships:read permission to read any membership in the project, or ownership of the membership when using a user-scoped token. A non-owner without memberships:read receives 401 rather than 404, so membership existence is never disclosed to a caller who isn't authorized to see it.

Path Parameters

project_idstringrequired

The unique identifier of the project.

membership_idstringrequired

The unique identifier of the membership.

Last updated: