---
title: "List team subscriptions"
method: GET
path: "/api/v3/teams/{team_id}/subscriptions"
tags: ["Billing"]
---

# List team subscriptions

`GET /api/v3/teams/{team_id}/subscriptions`

## Request

- Base URL: `https://codemagic.io`
- URL: `https://codemagic.io/api/v3/teams/{team_id}/subscriptions`
- Auth: API key in header `x-auth-token`
- TypeScript: <https://skmtc.dev/codemagic/apis/codemagic-api/docs/api/v3/teams/:team_id/subscriptions/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `team_id` string, required

## Response `200`

Request fulfilled, document follows

- SubscriptionSchemaListNoPagination
  - `data` SubscriptionSchema[], required
    - `id` unknown, required
    - `pricing_model` 'flat_rate' | 'usage_based' | 'custom', required: How a subscription is priced: a fixed fee, metered usage, or a custom agreement.
    - `status` 'disabled' | 'active' | 'incomplete' | 'incomplete_expired' | 'unpaid' | 'paused' | 'past_due' | 'trialing' | 'canceled', required: State of a subscription. `disabled` means it was turned off; the rest follow Stripe's subscription statuses.
    - `category` 'cicd' | 'codepush', required: The product line a subscription belongs to.
    - `trial_end_at` string, date-time, nullable, required

## Other responses

- `400`: The request could not be validated
- `401`: Authentication is missing or invalid
- `403`: The caller lacks the required permission
- `404`: The requested resource does not exist
- `429`: The rate limit has been exceeded

---

[API](https://skmtc.dev/codemagic/apis/codemagic-api.md) - [All operations](https://skmtc.dev/codemagic/apis/codemagic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/codemagic/apis/codemagic-api/revisions/be09630f65e2?raw)
