Skip to main content
POST
/
api
/
user
/
stripe
/
plan
Get current subscription plan
curl --request POST \
  --url http://localhost:3000/api/user/stripe/plan \
  --header 'x-access-token: <api-key>'
{
  "success": true,
  "plan": {
    "id": "<string>",
    "name": "<string>",
    "price": 123,
    "currency": "usd",
    "interval": "month",
    "credits": 123
  }
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Response

Plan retrieved successfully

success
boolean
Example:

true

plan
object