# List released phone numbers (/docs/api-reference/phone-numbers/listReleasedPhoneNumbers)

> Phone numbers your organization lost in the last days, newest first, and why: the renewal failed because your balance did not cover it, auto renew was off when the paid period ended, or it was released on request. Use it when a number is missing from List phone numbers.

**GET** `/phone_number/released`

Phone numbers your organization lost in the last days, newest first,
and why: the renewal failed because your balance did not cover it,
auto renew was off when the paid period ended, or it was released on
request. Use it when a number is missing from List phone numbers.

```yaml
operationId: listReleasedPhoneNumbers
parameters:
  - in: query
    name: user_id
    required: false
    description: |
      Reseller keys only: act as one of your clients by its user id. Omit
      it to act on your own account.
      [How acting for a client works](/docs/reseller/your-clients/acting-as-clients).
    schema:
      type: integer
      description: |
        Reseller keys only: act as one of your clients by its user id. Omit
        it to act on your own account.
        [How acting for a client works](/docs/reseller/your-clients/acting-as-clients).
      example: 1234
  - name: days
    in: query
    schema:
      type: integer
      default: 90
      minimum: 1
      maximum: 90
    description: How many days back to look.
  - name: pageno
    in: query
    schema:
      type: integer
      default: 1
      minimum: 1
      maximum: 10000
    description: Page number.
  - name: pagesize
    in: query
    schema:
      type: integer
      default: 50
      minimum: 1
      maximum: 150
    description: Numbers per page.
responses:
  '200':
    description: The released numbers.
    content:
      application/json:
        schema:
          type: object
          properties:
            released_numbers:
              type: array
              items:
                type: object
                properties:
                  phone_number:
                    type: string
                  released_at:
                    type: string
                    format: date-time
                  reason:
                    type: string
                    enum:
                      - renewal_failed
                      - auto_renew_off
                      - on_request
                  reason_text:
                    type: string
                    description: The reason in one plain sentence.
            total_records:
              type: integer
        example:
          released_numbers:
            - phone_number: '+15551234567'
              released_at: '2026-11-20T00:05:12Z'
              reason: renewal_failed
              reason_text: 'The renewal failed: your balance did not cover the renewal when the number expired.'
          total_records: 1
  '400':
    description: '`days` is not a number from 1 to 90, or `pageno` or `pagesize` is out of range.'
    content:
      application/json:
        schema:
          type: object
          properties:
            error:
              type: string
              description: Machine-readable error code.
            error_description:
              type: string
              description: Human-readable explanation.
            code:
              type: string
              description: |
                Stable, specific reason. Present on the newer endpoints (Voice
                cloning, WhatsApp); older endpoints return only `error`.
            request_id:
              type: string
              description: |
                Correlates this response with the server log. Present alongside
                `code`. Also sent as the `X-Request-Id` header.
        example:
          error: invalid_request
          error_description: days must be a number from 1 to 90
  '401':
    description: Missing or invalid API key.
    content:
      application/json:
        schema:
          type: object
          properties:
            error:
              type: string
              description: Machine-readable error code.
            error_description:
              type: string
              description: Human-readable explanation.
            code:
              type: string
              description: |
                Stable, specific reason. Present on the newer endpoints (Voice
                cloning, WhatsApp); older endpoints return only `error`.
            request_id:
              type: string
              description: |
                Correlates this response with the server log. Present alongside
                `code`. Also sent as the `X-Request-Id` header.
        example:
          error: unauthorized
          error_description: Missing or invalid API key
```

**curl**

```bash
curl -X GET "https://omnidim.io/api/v1/phone_number/released?user_id=1234" \
  -H "Authorization: Bearer $OMNIDIM_API_KEY"
```