# Firsty Developer Portal > Ship worldwide mobile data with one REST API. Data in 170 countries, calling to 200+, and a free test account you can open without a sales call. API reference and error pages are linked as Markdown: each one also answers at its own URL plus `.md`. ## Docs - [Credentials](https://developers.firsty.app/documentation/get-api-key): Connect your free test account, and create live credentials when you go live. - [OpenAPI Spec](https://developers.firsty.app/documentation/openapi-spec): The machine-readable description of every endpoint. ### Getting started - [Overview](https://developers.firsty.app/documentation): What the Firsty API does and how to make a first call. - [Quickstart](https://developers.firsty.app/documentation/getting-started/quickstart): Order your first eSIM on your test account, in under five minutes. - [Test and live environments](https://developers.firsty.app/documentation/getting-started/environments): What each one can do, and how to go live. - [Authentication](https://developers.firsty.app/documentation/getting-started/authentication): OAuth2 client credentials, tokens and environments. - [Rate limits](https://developers.firsty.app/documentation/getting-started/rate-limits): Request ceilings, burst behaviour and backoff guidance. - [Firsty CLI](https://developers.firsty.app/documentation/getting-started/cli): For builders: set up and check your integration from the terminal. ### Core concepts - [eSIM lifecycle](https://developers.firsty.app/documentation/concepts/esim-lifecycle): From provisioning to activation to expiry. - [eSIM installation](https://developers.firsty.app/documentation/concepts/esim-installation): Deep links, QR codes and in-app install on iOS and Android. - [Data plans](https://developers.firsty.app/documentation/concepts/data-plans): How allowances, regions and validity fit together. - [Webhooks](https://developers.firsty.app/documentation/concepts/webhooks): Subscribe to activation and usage events. - [Embedded web app](https://developers.firsty.app/documentation/concepts/embedded-web-app): Sign your own users into Firsty's hosted app with a signed JWT. ### Resources - [eSIM and telecom glossary](https://developers.firsty.app/documentation/resources/glossary): Plain definitions of the eSIM, telecom and VoIP terms developers meet when integrating mobile data: IMSI, ICCID, eUICC, SM-DP+, LPA, SIP, SBC and more. ## API reference ### Essentials - [Overview](https://developers.firsty.app/api-reference.md): The Partners API in full: worldwide eSIM and mobile data from one integration. - [Authentication](https://developers.firsty.app/api-reference/authentication.md): Exchange your client ID and secret for a bearer token. - [Errors](https://developers.firsty.app/api-reference/errors.md): RFC 9457 problem documents, and the responses any endpoint can return. ### Authentication - [Get Access Token](https://developers.firsty.app/api-reference/authentication/get-access-token.md): POST ### Catalog - [List available package plans](https://developers.firsty.app/api-reference/catalog/list-package-plans.md): GET - [List available eSIM variants](https://developers.firsty.app/api-reference/catalog/list-esim-variants.md): GET, Experimental - [List subscribable webhook event types](https://developers.firsty.app/api-reference/catalog/list-webhook-event-types.md): GET, Experimental ### Profile - [List profiles](https://developers.firsty.app/api-reference/profile/list-profiles.md): GET, Experimental - [Get profile](https://developers.firsty.app/api-reference/profile/get-profile.md): GET, Experimental - [Update profile](https://developers.firsty.app/api-reference/profile/update-profile.md): PATCH, Experimental ### eSIM - [Order an eSIM](https://developers.firsty.app/api-reference/esim/order-esim.md): POST - [List eSIMs for a profile](https://developers.firsty.app/api-reference/esim/list-profile-esims.md): GET - [Get eSIM details](https://developers.firsty.app/api-reference/esim/get-profile-esim.md): GET - [Update eSIM lifecycle](https://developers.firsty.app/api-reference/esim/update-profile-esim-lifecycle.md): PATCH, Experimental - [List eSIM status history](https://developers.firsty.app/api-reference/esim/list-profile-esim-updates.md): GET, Experimental ### Balance - [Get eSIM balance](https://developers.firsty.app/api-reference/balance/get-esim-balance.md): GET, Experimental - [Set eSIM balance](https://developers.firsty.app/api-reference/balance/set-esim-balance.md): PUT, Experimental - [List eSIM balance updates](https://developers.firsty.app/api-reference/balance/list-esim-balance-updates.md): GET, Experimental - [Create eSIM balance update](https://developers.firsty.app/api-reference/balance/create-esim-balance-update.md): POST, Experimental ### Usage - [Get eSIM usage](https://developers.firsty.app/api-reference/usage/get-profile-esim-usage.md): GET - [List aggregated usage history](https://developers.firsty.app/api-reference/usage/list-profile-esim-usage-history.md): GET, Experimental - [List usage sessions](https://developers.firsty.app/api-reference/usage/list-profile-esim-sessions.md): GET, Experimental ### Packages - [List packages for an eSIM](https://developers.firsty.app/api-reference/packages/list-profile-esim-packages.md): GET - [Order a package](https://developers.firsty.app/api-reference/packages/order-profile-esim-package.md): POST - [List package history](https://developers.firsty.app/api-reference/packages/list-profile-esim-package-history.md): GET - [Get package details](https://developers.firsty.app/api-reference/packages/get-profile-esim-package.md): GET - [Remove a package](https://developers.firsty.app/api-reference/packages/delete-profile-esim-package.md): DELETE ### Porting - [List port-in requests](https://developers.firsty.app/api-reference/porting/list-port-ins.md): GET, Experimental - [Create a corrected port-in request](https://developers.firsty.app/api-reference/porting/create-port-in.md): POST, Experimental - [Get port-in details](https://developers.firsty.app/api-reference/porting/get-port-in.md): GET, Experimental - [Cancel a port-in request](https://developers.firsty.app/api-reference/porting/cancel-port-in.md): POST, Experimental - [Move the porting moment of an approved port-in](https://developers.firsty.app/api-reference/porting/reschedule-port-in.md): POST, Experimental - [Abandon porting and keep the temporary number](https://developers.firsty.app/api-reference/porting/abandon-port-in.md): POST, Experimental ### Number Registration - [Get the number registration](https://developers.firsty.app/api-reference/number-registration/get-number-registration.md): GET, Experimental - [Create or replace the number registration](https://developers.firsty.app/api-reference/number-registration/upsert-number-registration.md): POST, Experimental ### Webhooks - [Overview](https://developers.firsty.app/api-reference/webhooks.md): Receive and verify eSIM, package, port-in and number registration events. - [eSIM events](https://developers.firsty.app/api-reference/webhooks/esim.md) - [Package events](https://developers.firsty.app/api-reference/webhooks/package.md) - [Port-in events](https://developers.firsty.app/api-reference/webhooks/portin.md) - [Number registration events](https://developers.firsty.app/api-reference/webhooks/number-registration.md) ### Management - [Get client](https://developers.firsty.app/api-reference/management/get-client.md): GET, Experimental - [List webhook endpoints](https://developers.firsty.app/api-reference/management/list-client-webhooks.md): GET, Experimental - [Create a webhook endpoint](https://developers.firsty.app/api-reference/management/create-client-webhook.md): POST, Experimental - [Update a webhook endpoint](https://developers.firsty.app/api-reference/management/update-client-webhook.md): PATCH, Experimental - [Delete a webhook endpoint](https://developers.firsty.app/api-reference/management/delete-client-webhook.md): DELETE, Experimental - [Rotate a webhook endpoint's signing secret](https://developers.firsty.app/api-reference/management/rotate-client-webhook-secret.md): POST, Experimental ## Errors - [API errors](https://developers.firsty.app/errors.md): Every Partners API error is an RFC 9457 problem document whose type field links to one of these pages. Each page explains what the error means and how to handle it. - [bad_request](https://developers.firsty.app/errors/bad_request.md): The request was malformed or a parameter had a value the endpoint cannot act on. - [validation_failed](https://developers.firsty.app/errors/validation_failed.md): One or more fields failed validation. The `errors` array lists each field and what is wrong with it. - [unauthorized](https://developers.firsty.app/errors/unauthorized.md): The request carried no usable credentials: the bearer token is missing, invalid or expired, or the client credentials were rejected. - [payment_required](https://developers.firsty.app/errors/payment_required.md): Your account balance with Firsty is below the minimum this operation requires. - [feature_not_enabled](https://developers.firsty.app/errors/feature_not_enabled.md): This feature is not enabled for your credentials. - [forbidden](https://developers.firsty.app/errors/forbidden.md): The credentials are valid, but this operation is not allowed. The `detail` field says why. - [balance_not_found](https://developers.firsty.app/errors/balance_not_found.md): The eSIM's balance has not been set up yet. - [esim_not_found](https://developers.firsty.app/errors/esim_not_found.md): The eSIM in the request does not exist under the profile in the URL. - [not_found](https://developers.firsty.app/errors/not_found.md): The resource in the request URL does not exist for your credentials. - [number_registration_not_found](https://developers.firsty.app/errors/number_registration_not_found.md): This eSIM has no number registration. - [package_not_found](https://developers.firsty.app/errors/package_not_found.md): The package in the URL does not exist for your credentials. - [package_plan_not_found](https://developers.firsty.app/errors/package_plan_not_found.md): The package plan in the request is not offered to your credentials. - [port_in_not_found](https://developers.firsty.app/errors/port_in_not_found.md): The port-in request in the URL does not exist on this eSIM. - [profile_not_found](https://developers.firsty.app/errors/profile_not_found.md): The profile in the request URL does not exist for your credentials. - [scheduled_action_not_found](https://developers.firsty.app/errors/scheduled_action_not_found.md): The scheduled action in the request URL does not exist on this subscription. - [subscription_not_found](https://developers.firsty.app/errors/subscription_not_found.md): The subscription in the request URL does not exist on this profile. - [subscription_plan_not_found](https://developers.firsty.app/errors/subscription_plan_not_found.md): The subscription plan does not exist for your credentials. - [webhook_endpoint_not_found](https://developers.firsty.app/errors/webhook_endpoint_not_found.md): The webhook endpoint in the request URL does not exist for your credentials. - [balance_not_available](https://developers.firsty.app/errors/balance_not_available.md): The eSIM's balance cannot be read or changed in its current lifecycle status. - [balance_update_pending](https://developers.firsty.app/errors/balance_update_pending.md): Another update of this eSIM's balance is still being applied. - [concurrent_modification](https://developers.firsty.app/errors/concurrent_modification.md): The resource changed while the request ran. - [conflict](https://developers.firsty.app/errors/conflict.md): The request is valid but conflicts with the current state of the resource. The `detail` field says which conflict you hit. - [esim_change_pending](https://developers.firsty.app/errors/esim_change_pending.md): An earlier change to the eSIM is still in progress. - [esim_not_active](https://developers.firsty.app/errors/esim_not_active.md): The operation needs an active eSIM, and this one is not active yet. - [esim_not_provisioned](https://developers.firsty.app/errors/esim_not_provisioned.md): The eSIM is not set up on its network yet, so the operation cannot run on it. - [esim_suspended](https://developers.firsty.app/errors/esim_suspended.md): The operation is not allowed on a suspended eSIM. Reactivate the eSIM through the [eSIM lifecycle](/api-reference/esim/update-profile-esim-lifecycle) first. - [esim_swap_cooldown](https://developers.firsty.app/errors/esim_swap_cooldown.md): The eSIM was activated less than an hour ago, and cannot be swapped until it has been live for an hour. - [esim_swap_pending](https://developers.firsty.app/errors/esim_swap_pending.md): The eSIM is being swapped, and the request has to wait until the swap completes. - [esim_terminated](https://developers.firsty.app/errors/esim_terminated.md): The eSIM is terminated, so no further lifecycle operation, swap or package order is possible. - [invalid_state_transition](https://developers.firsty.app/errors/invalid_state_transition.md): The resource's current state does not allow this operation. - [limit_reached](https://developers.firsty.app/errors/limit_reached.md): A limit for your account has been reached. - [no_esim_available](https://developers.firsty.app/errors/no_esim_available.md): No eSIM is available to swap into right now. - [number_registration_pending](https://developers.firsty.app/errors/number_registration_pending.md): A registration of this number is already with the registry. - [port_in_pending](https://developers.firsty.app/errors/port_in_pending.md): A number port-in on the eSIM is still in progress. - [services_change_pending](https://developers.firsty.app/errors/services_change_pending.md): An earlier change of the eSIM's services is still in progress. - [services_not_available](https://developers.firsty.app/errors/services_not_available.md): The eSIM's services cannot be read or changed until the eSIM exists on its network. - [balance_not_supported](https://developers.firsty.app/errors/balance_not_supported.md): The eSIM does not support a prepaid balance. - [balance_operation_not_supported](https://developers.firsty.app/errors/balance_operation_not_supported.md): This eSIM's balance accepts credits only. - [balance_update_refused](https://developers.firsty.app/errors/balance_update_refused.md): The network refused the balance update. - [client_transaction_id_reused](https://developers.firsty.app/errors/client_transaction_id_reused.md): This `clientTransactionId` was already used with a different update. - [esim_variant_not_allowed](https://developers.firsty.app/errors/esim_variant_not_allowed.md): The eSIM cannot be swapped into the eSIM variant the request names. - [esim_variant_not_swappable](https://developers.firsty.app/errors/esim_variant_not_swappable.md): The eSIM cannot be swapped. - [idempotency_key_reused](https://developers.firsty.app/errors/idempotency_key_reused.md): This `X-Idempotency-Key` was already used for a different request. - [insufficient_balance](https://developers.firsty.app/errors/insufficient_balance.md): The eSIM's balance is too low for this debit. - [number_not_available](https://developers.firsty.app/errors/number_not_available.md): The eSIM has no phone number to register yet. - [number_registration_not_supported](https://developers.firsty.app/errors/number_registration_not_supported.md): Number registration is not available for this country. - [port_in_cancel_refused](https://developers.firsty.app/errors/port_in_cancel_refused.md): The network refused to cancel the port-in. - [port_in_reschedule_not_supported](https://developers.firsty.app/errors/port_in_reschedule_not_supported.md): The eSIM's network cannot move an approved port-in; it completes at the moment the donor agreed. - [port_in_reschedule_refused](https://developers.firsty.app/errors/port_in_reschedule_refused.md): The network refused to move the port-in to the requested moment. - [porting_not_supported](https://developers.firsty.app/errors/porting_not_supported.md): Number porting is not available for this eSIM. - [services_change_refused](https://developers.firsty.app/errors/services_change_refused.md): The network refuses this combination of services. - [services_not_changeable](https://developers.firsty.app/errors/services_not_changeable.md): A requested service is not offered on this eSIM, or cannot be switched. - [services_not_supported](https://developers.firsty.app/errors/services_not_supported.md): This eSIM's network offers no services to read or change. - [sim_refused_by_network](https://developers.firsty.app/errors/sim_refused_by_network.md): The network refused to activate the selected SIM. - [unprocessable_entity](https://developers.firsty.app/errors/unprocessable_entity.md): The request is well formed and valid, but the operation it asks for cannot be carried out. The `detail` field explains why. - [locked](https://developers.firsty.app/errors/locked.md): A request with the same `X-Idempotency-Key` is still being processed. Wait briefly, then retry with the same key. - [rate_limit_exceeded](https://developers.firsty.app/errors/rate_limit_exceeded.md): Too many requests in the current window. Wait for the time in `Retry-After`, then try again. - [internal_error](https://developers.firsty.app/errors/internal_error.md): Something failed on Firsty's side. The request may or may not have taken effect, so check the resource's state before trying again. - [bad_gateway](https://developers.firsty.app/errors/bad_gateway.md): A network the request depends on failed to complete it. - [service_unavailable](https://developers.firsty.app/errors/service_unavailable.md): The request cannot be served right now. Wait a moment, then retry. ## Tools - [OpenAPI spec](https://developers.firsty.app/api-reference/openapi.json): the whole API as one OpenAPI 3.1 file - [Agent setup guide](https://developers.firsty.app/agents.md): walks a coding agent through the Firsty CLI, logging in to a test account and building an integration - [Create a test account](https://developers.firsty.app/signup?from=llms-txt): free, for builders; the CLI runs on one - [Firsty CLI on npm](https://www.npmjs.com/package/firsty): for builders, on a self-serve test account ## Optional - [Firsty for business](https://www.firsty.app/business) - [Talk to sales](https://developers.firsty.app/contact-sales): volume pricing and partnerships