gosimless logo
Virtual Numbers

gosimless API

Use the gosimless API to provision and manage virtual numbers programmatically as a wholesale partner.

The gosimless API lets wholesale partners provision and manage virtual numbers through code. Buy numbers on demand, update forwarding and connection settings, and push status or SMS events into your own systems. It is free for partners. Use it to power a reseller product, an internal ops tool, or an automated pipeline without working in the partner portal UI.

The gosimless API is available for free to all gosimless wholesale partners.
The gosimless API covers the virtual numbers offering and requires a wholesale Partner account. The API is not available on standard customer accounts.
ItemDetail
Who can use itWholesale partners with an active partner account
CostFree for wholesale partners
ScopeVirtual numbers (not eSIM plans)
Partner portalpartners.gosimless.com
Developer docsapi.gosimless.com/docs
Typical actionsProvision numbers, manage connections, sync status into your own systems

API developer docs

The API docs explain what the API can do, how authentication works, and how requests and responses are shaped. Use them to build a clear picture of the API and start building quickly.

gosimless API docs

The gosimless API gives you programmatic access to your account where you can provision virtual numbers, manage your inventory, and query billing data. Anything you can do through the UI can be done through the API.

To use the API, open a wholesale partner account, add funds, then create your API credentials in the partner portal. Sign up at partner.gosimless.com

API reference basics

  • Base URL: https://api.gosimless.com/v1
  • Authentication: every request needs an Authorization: Bearer gsk_<api_key> header. Get yours through the partner portal.
  • Rate limits: 100 requests/minute. Use webhooks instead of polling to avoid hitting rate limits.
  • Versioning: the API version lives in the base URL (for example /v1, /v2, /v2.02). Call the version you integrate against so later releases do not break your app.
  • Pagination: list endpoints use ranges. Send a range on the request to choose which records you need (indexes start at 0). The response returns a Content-Range header such as 0-19/100 - the first 20 results out of 100 total.
  • Response codes: all responses use standard HTTP status codes. Error responses return JSON with error and human-readable message fields.
Statuserror codeMeaning
200-Success
201-Success, resource created
400validation_errorRequest body failed schema validation
400invalid_requestSpecific field or parameter problem
401unauthorizedMissing or invalid API key
402insufficient_balanceInsufficient account balance
403forbiddenAPI key lacks the required permission
403account_suspendedPartner account is suspended
404not_foundResource not found
405method_not_allowedHTTP method not supported on this endpoint
409conflictState conflict (e.g. duplicate email)
500internal_errorUnexpected server error
503service_unavailableNumber provisioning unavailable
{
  "error": "code",
  "message": "Human-readable details"
}

API use cases

Partners use the gosimless API in two ways. Business use cases are the outcomes you build for, such as reseller application or workflow automation. Functional use cases are the concrete API operations those outcomes rely on, such as number provisioning and data gathering.

Business use cases

Most partner integrations fall into one of these outcomes:

  • Resell virtual numbers: provision and assign gosimless numbers to your own customers through your checkout or admin tools.
  • Embed numbers in your product: add virtual numbers to an existing product or service, or offer them as an add-on.
  • Build internal tools: run ops dashboards, scripts, and pipelines that manage large volumes of numbers.
  • Automate workflows: replace repeated portal steps with API calls for provisioning, updates, releases, and syncing status into your CRM or billing stack.

Functional examples

These examples show common virtual number operations in curl, Nuxt, Next.js, PHP, and Ruby. Replace gsk_<api_key> with your partner API key. Full schemas live in the API docs.

Authenticate a request

Every call needs a Bearer token. GET /account is a simple first check:

curl https://api.gosimless.com/v1/account \
  -H "Authorization: Bearer gsk_<api_key>"

Example 200 response:

200 OK
{
  "id": "prt_VrZQBDMF49svL9NRUQXTEw",
  "balance_cents": 7750,
  "email_notifications": true,
  "messages_webhook_url": "https://example.com/webhooks/sms",
  "profile_data": null
}

Provision UK mobile numbers

POST /numbers buys one or more GB mobile numbers from your partner balance (numbers:write required):

curl -X POST https://api.gosimless.com/v1/numbers \
  -H "Authorization: Bearer gsk_<api_key>" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "mobile",
    "country": "GB",
    "amount": 1,
    "messages_webhook_url": "https://example.com/webhooks/sms",
    "metadata": {
      "customer_id": "cust_1234",
      "campaign": "launch"
    }
  }'

Example 201 response:

201 Created
[
  {
    "id": "num_9W4kFx2mR8pLqT6v",
    "phone_number": "+447911123001",
    "country": "GB",
    "number_type": "mobile",
    "status": "active",
    "monthly_cost_cents": 599,
    "messages_webhook_url": "https://example.com/webhooks/sms",
    "created_at": "2026-03-01T12:00:00.000Z",
    "released_at": null,
    "renewal_at": "2026-04-01T12:00:00.000Z",
    "metadata": {
      "customer_id": "cust_1234",
      "campaign": "launch"
    }
  }
]

List numbers (with pagination)

GET /numbers supports filters and a range query (start-end, zero-based). Check Content-Range on the response (for example 0-19/100):

curl "https://api.gosimless.com/v1/numbers?status=active&range=0-19" \
  -H "Authorization: Bearer gsk_<api_key>" \
  -i

Example 200 response (Content-Range: 0-0/1):

200 OK
[
  {
    "id": "num_9W4kFx2mR8pLqT6v",
    "phone_number": "+447911123001",
    "country": "GB",
    "number_type": "mobile",
    "status": "active",
    "monthly_cost_cents": 599,
    "messages_webhook_url": "https://example.com/webhooks/sms",
    "created_at": "2026-03-01T12:00:00.000Z",
    "released_at": null,
    "renewal_at": "2026-04-01T12:00:00.000Z",
    "metadata": {
      "customer_id": "cust_1234",
      "campaign": "launch"
    }
  }
]

Get a single number

curl https://api.gosimless.com/v1/numbers/num_9W4kFx2mR8pLqT6v \
  -H "Authorization: Bearer gsk_<api_key>"

Example 200 response:

200 OK
{
  "id": "num_9W4kFx2mR8pLqT6v",
  "phone_number": "+447911123001",
  "country": "GB",
  "number_type": "mobile",
  "status": "active",
  "monthly_cost_cents": 599,
  "messages_webhook_url": "https://example.com/webhooks/sms",
  "created_at": "2026-03-01T12:00:00.000Z",
  "released_at": null,
  "renewal_at": "2026-04-01T12:00:00.000Z",
  "metadata": {
    "customer_id": "cust_1234",
    "campaign": "launch"
  }
}

Update metadata or SMS webhook

POST /numbers/{numberId} updates an active number. Pass at least one of metadata or messages_webhook_url:

curl -X POST https://api.gosimless.com/v1/numbers/num_9W4kFx2mR8pLqT6v \
  -H "Authorization: Bearer gsk_<api_key>" \
  -H "Content-Type: application/json" \
  -d '{
    "metadata": {
      "customer_id": "cust_1234",
      "campaign": "summer_promo"
    },
    "messages_webhook_url": "https://example.com/webhooks/sms"
  }'

Example 200 response:

200 OK
{
  "id": "num_9W4kFx2mR8pLqT6v",
  "phone_number": "+447911123001",
  "country": "GB",
  "number_type": "mobile",
  "status": "active",
  "monthly_cost_cents": 599,
  "messages_webhook_url": "https://example.com/webhooks/sms",
  "created_at": "2026-03-01T12:00:00.000Z",
  "released_at": null,
  "renewal_at": "2026-04-01T12:00:00.000Z",
  "metadata": {
    "customer_id": "cust_1234",
    "campaign": "summer_promo"
  }
}

Release a number

curl -X DELETE https://api.gosimless.com/v1/numbers/num_9W4kFx2mR8pLqT6v \
  -H "Authorization: Bearer gsk_<api_key>"

Example 200 response:

200 OK
{
  "id": "num_9W4kFx2mR8pLqT6v",
  "phone_number": "+447911123001",
  "country": "GB",
  "number_type": "mobile",
  "status": "released",
  "monthly_cost_cents": 599,
  "messages_webhook_url": null,
  "created_at": "2026-03-01T12:00:00.000Z",
  "released_at": "2026-03-15T09:30:00.000Z",
  "renewal_at": null,
  "metadata": {
    "customer_id": "cust_1234",
    "campaign": "summer_promo"
  }
}

List inbound message records

curl "https://api.gosimless.com/v1/messages?range=0-19" \
  -H "Authorization: Bearer gsk_<api_key>" \
  -i

Example 200 response:

200 OK
[
  {
    "id": "msg_1Lh4Yw6oB3xFvN8k",
    "direction": "inbound",
    "message_type": "sms",
    "to_number": "+447911123001",
    "from_number": "+447700900999",
    "parts": 1,
    "content": "Your WhatsApp code is 123-456",
    "date": "2026-03-01T12:05:00.000Z",
    "metadata": {}
  }
]

Frequently asked questions

Who can use the gosimless API?
Wholesale partners only. Standard gosimless customer accounts do not include API access. Apply or sign in at partners.gosimless.com.

Does the API cost extra?
No. It is free for wholesale partners.

What products does the API cover?
Virtual numbers. It does not cover UK business eSIM plans.

Where do I find endpoint documentation?
In the interactive developer docs at api.gosimless.com/docs.

Do I still need the partner portal?
Yes for account setup, credentials, and day-to-day partner administration. Use the API when you want those number workflows inside your own software.

Is this the WhatsApp Business Platform API?
No. The gosimless API manages gosimless virtual numbers for partners. WhatsApp Business Platform / Cloud API is a separate Meta product.

How do I get help?
Contact partner support through partners.gosimless.com, or email hello@gosimless.com and mention that you are a wholesale partner using the API.