latestSwagger 2.02026-08-101561322.2 MB

3e4029d19684

Numbers

Get all your dedicated numbers

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/undefined/getUserDedicatedNumbers" target="_blank">Try in sandbox</a><br>

get/api/v2/numbers

Query parameters

pageinteger

Fetch specified results page.

limitinteger

The number of results per page.

surveyIdinteger

Fetch only those numbers that are ready for the survey.

Response

Requested data returned with success.

pageinteger required
pageCountinteger required

The total number of pages.

limitinteger required

The number of results per page.

Example response

{
  "page": 1,
  "pageCount": 10,
  "limit": 10,
  "resources": [
    {
      "id": 305,
      "displayTimeFormat": "24h",
      "phone": "447860021130",
      "user": {
        "id": 305,
        "displayTimeFormat": "24h",
        "username": "charles.conway",
        "firstName": "Charles",
        "lastName": "Conway",
        "email": "charles@example.com",
        "status": "A",
        "balance": 208.64,
        "phone": "447860021130",
        "company": "Example Ltd.",
        "currency": {
          "id": "GBP",
          "unicodeSymbol": "£",
          "htmlSymbol": "&pound;"
        },
        "country": {
          "id": "US",
          "name": "India"
        },
        "timezone": {
          "id": 55,
          "area": "Europe",
          "dst": 1,
          "offset": 10800,
          "timezone": "Europe\\/Tallinn"
        },
        "subaccountType": "P",
        "emailAccepted": true,
        "phoneAccepted": true,
        "avatar": {
          "href": "avatars/lav5d8de21d89971646555094.png"
        }
      },
      "purchasedAt": "2014-10-02T11:07:04+0000",
      "expireAt": "2014-10-02T11:07:04+0000",
      "status": "U",
      "country": {
        "id": "US",
        "name": "India"
      }
    }
  ]
}