The subscription plan of the user

GET /me/plan

Get the subscription of the user: the current plan, any pending plans, and the duration of a trial period if applicable

Responses

  • 200

    OK

    Hide response attribute Show response attribute object
    • data object

      Additional properties are allowed.

      Hide data attributes Show data attributes object
      • current_plan object

        Additional properties are allowed.

        Hide current_plan attributes Show current_plan attributes object
        • container_count integer
        • expires_at string
        • id string
        • name string
        • price integer
      • pending_plan object

        Additional properties are allowed.

        Hide pending_plan attributes Show pending_plan attributes object
        • container_count integer
        • expires_at string
        • id string
        • name string
        • price integer
      • trial_expires_at string
  • 400

    Bad Request

    Hide response attribute Show response attribute object
    • message string
  • 401

    Unauthorized

    Hide response attribute Show response attribute object
    • message string
  • 404

    Not Found

    Hide response attribute Show response attribute object
    • message string
  • 500

    Internal Server Error

    Hide response attribute Show response attribute object
    • message string
GET /me/plan
curl \
 --request GET 'https://api.bitrise.io/v0.1/me/plan' \
 --header "Authorization: $API_KEY"
Response examples (200)
{
  "data": {
    "current_plan": {
      "container_count": 42,
      "expires_at": "string",
      "id": "string",
      "name": "string",
      "price": 42
    },
    "pending_plan": {
      "container_count": 42,
      "expires_at": "string",
      "id": "string",
      "name": "string",
      "price": 42
    },
    "trial_expires_at": "string"
  }
}
Response examples (400)
{
  "message": "string"
}
Response examples (401)
{
  "message": "string"
}
Response examples (404)
{
  "message": "string"
}
Response examples (500)
{
  "message": "string"
}