Quackr Per-Service Numbers API

Operations for purchasing and managing per-service dedicated phone numbers. Each number is exclusively assigned to receive SMS from a single service (e.g. WhatsApp, Telegram, Google) for long-term use. Available durations: oneWeek, oneMonth, sixMonths, twelveMonths.

GitHub OpenAPI

Operations 6

GET /per-service/services Get per-service number services and pricing #
POST /per-service/purchase Purchase a per-service number #
POST /per-service/renew Renew a per-service rental #
POST /per-service/cancel Cancel a per-service rental #
GET /per-service/rentals Get active per-service rentals #
GET /per-service/messages Get messages for a per-service rental #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/quackr-io:quackr-io-per-service-numbers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

quackr-io-per-service-numbers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Quackr Per-Service Numbers API
  version: 1.0.0
  description: 'Comprehensive API for temporary phone number rental, SMS verification, per-service dedicated numbers, and virtual card management. Purchase phone numbers from multiple countries, receive SMS messages, manage account balance, check inventory availability, configure webhook notifications for real-time SMS delivery, rent per-service numbers for specific platforms (WhatsApp, Telegram, etc.), create/manage virtual credit cards, and buy residential proxy data by the GB.


    ## Common Properties


    ### Duration Values

    The `duration` field is used across multiple endpoints and accepts the following values:


    | Value | Duration |

    |-------|----------|

    | `halfDay` | 12 hours |

    | `oneDay` | 24 hours |

    | `oneWeek` | 7 days |

    | `oneMonth` | 30 days |

    | `sixMonths` | 180 days |

    | `twelveMonths` | 365 days |


    ### Locale Values

    The `locale` field specifies the country for phone numbers:


    | Code | Country |

    |------|----------|

    | `US` | United States |

    | `UK` | United Kingdom |

    | `NL` | Netherlands |

    | `HK` | Hong Kong |

    | `AU` | Australia |

    | `CA` | Canada |

    | `FI` | Finland |

    | `DE` | Germany |

    | `ES` | Spain |

    | `LT` | Lithuania |

    | `MX` | Mexico |

    | `IL` | Israel |

    | `PL` | Poland |

    | `IT` | Italy |

    | `AT` | Austria |

    | `SI` | Slovenia |

    | `CH` | Switzerland |

    | `BE` | Belgium |'
servers:
- url: https://api.quackr.io
  description: quackr api server
security:
- ApiKeyAuth: []
tags:
- name: Per-Service Numbers
  description: 'Operations for purchasing and managing per-service dedicated phone numbers. Each number is exclusively assigned to receive SMS from a single service (e.g. WhatsApp, Telegram, Google) for long-term use. Available durations: oneWeek, oneMonth, sixMonths, twelveMonths.'
paths:
  /per-service/services:
    get:
      summary: Get per-service number services and pricing
      description: Retrieve available services (e.g. WhatsApp, Telegram, Google) with pricing for a specific locale. Per-service numbers are dedicated to receiving SMS from a single service for long-term use. Pricing is returned per duration (oneWeek, oneMonth, sixMonths, twelveMonths).
      tags:
      - Per-Service Numbers
      parameters:
      - in: query
        name: locale
        required: true
        schema:
          type: string
          pattern: ^[A-Z]{2}$
        example: US
        description: Country code (e.g. US, UK, AU)
      responses:
        '200':
          description: Successfully retrieved services with pricing
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  locale:
                    type: string
                    example: US
                  services:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Service slug identifier
                          example: wa
                        name:
                          type: string
                          example: WhatsApp
                        pricing:
                          type: object
                          properties:
                            oneWeek:
                              type: string
                              example: '2.75'
                            oneMonth:
                              type: string
                              example: '4.50'
                            sixMonths:
                              type: string
                              example: '13.50'
                            twelveMonths:
                              type: string
                              example: '27.00'
        '400':
          description: Missing or invalid locale
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: 'Missing required field: locale'
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Missing or Incorrect API Key
      operationId: getPerServiceServices
      x-operation-id-source: derived
  /per-service/purchase:
    post:
      summary: Purchase a per-service number
      description: Purchase a dedicated phone number for receiving SMS from a specific service (e.g. WhatsApp, Telegram). The number is exclusively assigned to you for the chosen service and duration. Cost is deducted from your account balance.
      tags:
      - Per-Service Numbers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - locale
              - service
              - duration
              properties:
                locale:
                  type: string
                  pattern: ^[A-Z]{2}$
                  description: Country code (e.g. US, UK, AU)
                  example: US
                service:
                  type: string
                  description: Service slug from the /per-service/services endpoint
                  example: wa
                duration:
                  type: string
                  enum:
                  - oneWeek
                  - oneMonth
                  - sixMonths
                  - twelveMonths
                  example: oneMonth
      responses:
        '200':
          description: Successfully purchased per-service number
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  orderId:
                    type: string
                    description: 'This order''s number. Every purchase and renewal gets one, always in this format: QK- and 8 letters and digits. Quote it to support, and look the order up with GET /orders?orderId=...'
                    example: QK-7K3M9P2X
                  rental:
                    type: object
                    properties:
                      rentId:
                        type: string
                        description: Unique rental identifier (used for renewals and message retrieval)
                        example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      phoneNumber:
                        type: string
                        example: '12025551234'
                      service:
                        type: string
                        example: wa
                      serviceName:
                        type: string
                        example: WhatsApp
                      locale:
                        type: string
                        example: US
                      rentalStartDate:
                        type: number
                        example: 1709251200000
                      rentalEndDate:
                        type: number
                        example: 1711843200000
                      price:
                        type: string
                        example: '4.50'
        '400':
          description: Invalid request, service not found, insufficient balance, or no availability
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
              examples:
                insufficientBalance:
                  summary: Insufficient balance
                  value:
                    success: false
                    error: 'Insufficient balance. Required: $4.50, Available: $2.00'
                noAvailability:
                  summary: No numbers available
                  value:
                    success: false
                    error: No numbers available for this locale
                serviceNotFound:
                  summary: Service not found
                  value:
                    success: false
                    error: Service not found
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Missing or Incorrect API Key
      operationId: postPerServicePurchase
      x-operation-id-source: derived
  /per-service/renew:
    post:
      summary: Renew a per-service rental
      description: Extend the rental period for an existing per-service number. The new duration is added to the current expiry date. Cost is deducted from your account balance.
      tags:
      - Per-Service Numbers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - rentId
              - duration
              properties:
                rentId:
                  type: string
                  description: The rental ID returned from the purchase endpoint
                  example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                duration:
                  type: string
                  enum:
                  - oneWeek
                  - oneMonth
                  - sixMonths
                  - twelveMonths
                  example: oneMonth
      responses:
        '200':
          description: Successfully renewed rental
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  orderId:
                    type: string
                    description: The renewal's order number. Each renewal is its own order, in the same format as a purchase.
                    example: QK-7K3M9P2X
                  rental:
                    type: object
                    properties:
                      rentId:
                        type: string
                        example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      phoneNumber:
                        type: string
                        example: '12025551234'
                      service:
                        type: string
                        example: wa
                      serviceName:
                        type: string
                        example: WhatsApp
                      locale:
                        type: string
                        example: US
                      rentalEndDate:
                        type: number
                        description: Updated expiry timestamp (milliseconds)
                        example: 1714435200000
        '400':
          description: Invalid request or insufficient balance
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: 'Insufficient balance. Required: $4.50, Available: $2.00'
        '404':
          description: Rental not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Rental not found
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Missing or Incorrect API Key
      operationId: postPerServiceRenew
      x-operation-id-source: derived
  /per-service/cancel:
    post:
      summary: Cancel a per-service rental
      description: Cancel a recently purchased per-service rental and get a refund of everything paid for it (the purchase and any renewals) to your account balance. A rental can only be cancelled between 5 and 120 minutes after purchase, and only if it has not received any SMS. Cancelling through the API must be enabled for your account; contact support to enable it.
      tags:
      - Per-Service Numbers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - rentId
              properties:
                rentId:
                  type: string
                  description: The rental ID returned from the purchase endpoint
                  example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
      responses:
        '200':
          description: Rental cancelled and refunded
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  rentId:
                    type: string
                    example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                  refundAmount:
                    type: number
                    description: Amount refunded to your account balance (USD)
                    example: 4.1
        '400':
          description: Cancellation not allowed
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: ''
              examples:
                tooNew:
                  summary: Rental too new
                  value:
                    success: false
                    error: Rental must be at least 5 minutes old before it can be cancelled
                tooOld:
                  summary: Rental too old
                  value:
                    success: false
                    error: Rental is older than 120 minutes and cannot be cancelled
                hasMessages:
                  summary: Rental received SMS
                  value:
                    success: false
                    error: Rental has received SMS and cannot be cancelled
                alreadyCancelled:
                  summary: Already cancelled
                  value:
                    success: false
                    error: Rental has already been cancelled
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Missing or Incorrect API Key
        '403':
          description: API cancellation is not enabled for this account
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: API cancellation is not enabled for your account. Please contact support.
        '404':
          description: Rental not found on this account
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Rental does not exist or is not assigned to your account
      operationId: postPerServiceCancel
      x-operation-id-source: derived
  /per-service/rentals:
    get:
      summary: Get active per-service rentals
      description: Retrieve all active per-service number rentals for your account
      tags:
      - Per-Service Numbers
      responses:
        '200':
          description: Successfully retrieved rentals
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  rentals:
                    type: array
                    items:
                      type: object
                      properties:
                        rentId:
                          type: string
                          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                        phoneNumber:
                          type: string
                          example: '12025551234'
                        service:
                          type: string
                          example: wa
                        serviceName:
                          type: string
                          example: WhatsApp
                        locale:
                          type: string
                          example: US
                        rentalStartDate:
                          type: number
                          example: 1709251200000
                        rentalEndDate:
                          type: number
                          example: 1711843200000
                        status:
                          type: string
                          enum:
                          - Rented
                          example: Rented
                        messageCount:
                          type: integer
                          description: Number of SMS messages received
                          example: 3
                        nickname:
                          type:
                          - string
                          - 'null'
                          example: My WhatsApp
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Missing or Incorrect API Key
      operationId: getPerServiceRentals
      x-operation-id-source: derived
  /per-service/messages:
    get:
      summary: Get messages for a per-service rental
      description: Retrieve all SMS messages received for a specific per-service rental
      tags:
      - Per-Service Numbers
      parameters:
      - in: query
        name: rentId
        required: true
        schema:
          type: string
        example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        description: The rental ID to get messages for
      responses:
        '200':
          description: Successfully retrieved messages
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  messages:
                    type: array
                    items:
                      type: object
                      properties:
                        sender:
                          type: string
                          example: '12345'
                        message:
                          type: string
                          example: Your WhatsApp code is 123-456
                        timestamp:
                          type: number
                          example: 1709337600000
        '400':
          description: Missing rentId parameter
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Missing rentId
        '404':
          description: Rental not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Rental not found
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Missing or Incorrect API Key
      operationId: getPerServiceMessages
      x-operation-id-source: derived
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key