Account - Cease Account
Cease Account. WARNING:: Please use with caution this will irrevocably cease the SIM and Account - it can not be reversed
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
Account Successfully Ceased
Account - Get Info
Get account information, services and bundle
path Parameters
mpnstring · requiredmpn of account you want to retrieve info for
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
Info of Account
accountobject[]Info Regarding the Account
Example: {"sim":"8944000000000123456","i_account":"123456","mpn":"447777777777","sip_address":"sipaddress","services":{"mobile_data":"ON","mobile_hotspot":"OFF","mobile_messaging":"ON","mobile_voice":"ON"},"bundles":{"data":{"bundle_name":"10GB","allowance":10240,"used":240,"remaining":10000,"unit":"megabyte","period_from":"2024-01-01 00:00:00","period_to":"2024-02-01 00:00:00"}}}
Account - Update Bundle
Use this method to update the bundle associated to the Account use either BASE (no data) or UNLIMITED (data)
path Parameters
mpnstring · requiredmpn of account you want to update
bundlestring · requiredBundle SKU
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
Bundle Successfully Updated
Account - Recording
Enable or disable call and SMS recording for the specified account. ⚠️ Use with caution, especially for users in regulated industries. Disabling recording will immediately stop all data capture, and any unrecorded events cannot be recovered retroactively.
path Parameters
mpnstring · requiredmpn of account you want to update
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
voice_recordingstring · enum · requiredUse a value of ON or OFF to enable or disable Voice Recording
Enum values:ONOFFExample: ONDefault: ONsms_recordingstring · enum · requiredUse a value of ON or OFF to enable or disable SMS Recording
Enum values:ONOFFExample: ONDefault: ON
Responses
Account Recording Status
voice_recordingstringVoice Recording Status
Example: Voice Recording Activatedsms_recordingstringSMS Recording Status
Example: SMS Recording Activated
Account - eSIM
Returns the eSIM activation code and status for the supplied i_account, MPN or ICCID. Additionally allows eSIM activation code to be refreshed if not currently installed. The eSIM activation code can be used to generate a QR code for installation on an eSIM compatible device.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
i_accountstringYour account/subscriber's unique ID
Example: 12345Default:mpnstringEnter any of your SIM's numbers, mobile or landline, in e164 (i.e 44777...)
Example: 447777777777Default:iccidstringYour 19 digit SIM ID
Example: 8944444444444444444Default:refresh_codeinteger · enumIf set to 1 will refresh the activation code if eSIM has not yet been installed
Enum values:01Example: 1Default: 0
Responses
eSIM Activation Code, Status of Installation & Refresh Confirmation
esim_codestringThe eSIM Activation Code
Example: LPA:XXXXesim_statusstringThe eSIM Installation Status
Example: installed or ready to installenabled_on_devicestringWhether the installed eSIM is enabled or disabled on the device
Example: Yrefresh_codestringWhether the call to refresh the code has been actioned
Example: esim code refreshed or error
Account - Generate QR
Pass a valid eSIM activation code in order to generate a QR Image. Note: Images are presigned S3 URLs with an expiry of 24 hours
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
Presigned QR code PNG URL
Account - Update Mobile Settings
Update Mobile Settings for Account
path Parameters
mpnstring · requiredmpn of account you are updating
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
mpnstringAccount's new mpn
Example: 447777777777pbx_userstringAccount's new SIP address/username
Example: USER12345pbx_passwordstringAccount's new SIP password
Example: PA$$W0RD!first_namestringAccount's new First Name
Example: Johnlast_namestringAccount's new Last Name
Example: SmithemailstringAccount's new Email Address
Example: j.smith@example.commobile_datastring · enumUse a value of ON or OFF to enable or disable Mobile Data
Enum values:ONOFFExample: ONDefault: ONmobile_voicestring · enumUse a value of ON or OFF to enable or disable Mobile Voice
Enum values:ONOFFExample: ONDefault: ONmobile_smsstring · enumUse a value of ON or OFF to enable or disable Mobile SMS
Enum values:ONOFFExample: ONDefault: ONmobile_hotspotstring · enumUse a value of ON or OFF to enable or disable Mobile Hotspot/Tethering of mobile data
Enum values:ONOFFExample: ONDefault: OFF
Responses
Account Updated
Account - SIM Swap
Update the SIM (perform a SIM Swap) used by an Account
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
mpnstring · requiredAccount's mobile phone number
Example: 447777777777new_iccidstring · requiredNew ICCID for physical SIM or if set to eSIM it will switch to the next available eSIM.
Example: 894400000000012345
Responses
Sim Swap update successful
Numbers - List all numbers
Get a list of reseller numbers filtered by state
path Parameters
statestring · requiredState of mpn - either 'ACTIVE' or 'RESERVED'
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
List of numbers filtered by state
Numbers - Delete a number
Deletes a number. NOTE: you can only delete numbers that are in a 'RESERVED' state (i.e not on an active account)
path Parameters
mpnstring · requiredmpn to delete
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
Number deleted
Reseller - Add Group
Add a new Group/Customer
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
namestring · requiredGroup Name. ((Must be unique, length 3-45 characters ('a-z' 'A-Z' '0-9' '_' '-'), MUST start with an alphanumeric character, MUST contain at least one Alphabetical character & No spaces or other characters))
Example: ExampleCustomeraddress_line_1string · requiredLine 1 of customer address
Example: Example Buildinghome_locationstring · requiredA list of three character country codes (ISO-3166) for which the Group's service is primarily homed, comma separated when more than one location: current values limited to "GBR" or "USA" or a list of the two
Example: GBR
address_line_2stringLine 2 of customer address
Example: 18 Example StreetcitystringCustomer City
Example: Example CitycountrystringCustomer Country
Example: Example Countrypost_codestringCustomer Post Code
Example: SW1A 0AAdescriptionstringDescription of the customer/group
Example: Example Group for testing API
Responses
New Group Successfully Added
Reseller - List Product Catalogue
Return a list of available bundles and product SKU's for provisioning ONSIM services
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
List of Products and Bundles
catalogueobject · required
Reseller - Provision Account (own UC)
Provision a new SIM when using your own PBX.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
mpnstring · requiredNumber to be used as the account's primary mobile number (used for SMS, iMessage, etc)
Example: 447777777777
iccidstring19 digit ICCID of physical SIM (remove the final digit from printed version). If ICCID is not supplied the next available eSIM will be used.
Example: 8944530000000012345pbx_userstringAccount's SIP address/username - if not included in request it will default to 'ONSIM[ICCID]'
Example: USER12345pbx_passwordstringAccount's new SIP password - if not included in request we will create one and return this in the response
Example: 1a2B3c4D
Responses
Successful Provision of Subscriber
esim_codestringThe eSIM Activation Code
Example: LPA:XXXXiccidstringThe ICCID of the eSIM with ONSIM appended at the beginning - this is the SIP Address/Username
Example: ONSIM8944000000000123456pbx_passwordstringThis is the SIP Password for the provisioned user
Example: 1a2B3c4D
Reseller - Provision Account (ONSIM UC)
Provision a new account and SIM on ONSIM.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
mpnstring · requiredNumber to be used as the account's primary mobile number (used for SMS, iMessage, etc)
Example: 447777777777group_namestring · requiredCustomer Group ID
Example: CUSTOMER_Ahome_locationstring · enum · requiredHome Location of USER (GBR, USA, FRA, etc)
Enum values:GBRUSAFRAExample: USAfirst_namestring · requiredAccount's First Name
Example: Johnlast_namestring · requiredAccount's Last Name
Example: Smithemailstring · requiredAccount's Email Address
Example: j.smith@example.comproductinteger · requiredID of the product to provision
Example: 18mobile_datastring · enum · requiredData Bundle to be applied to the subscriber
Enum values:BACKGROUND-ONLY2GB4GB10GB20GBUNLIMITEDExample: 2GB
iccidstring19 digit ICCID of physical SIM (remove the final digit from printed version). If ICCID is not supplied the next available eSIM will be used.
Example: 8944530000000012345
Responses
Successful Provision of Subscriber
esim_codestringThe eSIM Activation Code
Example: LPA:XXXXiccidstringThe ICCID of the eSIM with ONSIM appended at the beginning - this is the SIP Address/Username
Example: ONSIM8944000000000123456pbx_passwordstringThis is the SIP Password for the provisioned user
Example: 1a2B3c4D
Reseller - List Subscribers
Returns a list of existing Subscribers for the Reseller.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
statestring · enum · requiredSubscriber status/state. Must be 'PROVISIONED'.
Enum values:PROVISIONEDExample: PROVISIONED
is_recordedbooleanReturn the recording state of all subscribers
Example: truegroupstringOptionally filter by group
Example: CUSTOMERA
Responses
JSON List of your Subscribers
SIMs - List all sims
Get a list of reseller sims filtered by state and type
path Parameters
statestring · requiredState of SIM - either 'ACTIVE' or 'RESERVED'
typestring · requiredType of SIM - either 'ALL', 'eSIM' or 'pSIM'
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
List of sims filtered by state and type
SMS - Terminate SMS
Delivers a SMS message to an ONSIM subscriber - please make sure you have enabled SMS Gateway for this subscriber.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
idstring · requiredYour unique reference for the SMS Message
Example: 39edf9a4-7e2d-4126-af69-5246da735278Default:fromstring · required+e164 number of sender (i.e +44777...)
Example: +447777777777Default:tostring · required+e164 number of ONSIM Subscriber (i.e +44777...)
Example: +447888888888Default:messagestring · requiredBody of SMS encoded in UTF-8
Example: Hello ONSIM Subscriber!Default:
Responses
SMS Successfully Terminated
Porting - List All Ports
Returns a list of ports filtered by status. Valid state types = [ALL, INITIAL, IN PROGRESS, FAILED, COMPLETE, CLOSED]
path Parameters
statestring · requiredState to filter results
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
List of Ports filtered by State
portQueueobject[]List of Ports filtered by State
Example: {"port":[{"trID":"1","number":"447777777771","orderDate":"2025-01-01","PAC":"ABC12345","portinDate":"2025-01-02","portinNumber":"447777777772","resellerId":"1","status":"COMPLETE","type":"PORT-IN","updatedDate":"Jan 2, 2025 1:20:30 PM"}]}
Porting - Lookup Port
Lookup the details of an ACTIVE Port with the supplied ID
path Parameters
idstring · requiredID of the port to query
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
Port Details
portobjectPort Details
Example: {"trID":"1","number":"447777777771","orderDate":"2025-01-01","PAC":"ABC12345","portinDate":"2025-01-02","portinNumber":"447777777772","resellerId":"1","status":"COMPLETE","type":"PORT-IN","updatedDate":"Jan 2, 2025 1:20:30 PM","validUntil":"2025-01-30"}
Porting - Port in UK MPN
Request PORT IN of UK MPN using a PAC obtained from another network. ⚠️ IMPORTANT:: The Number being replaced (the number currently in use on the target SIM) will be irrevocably removed from the system. If you need to keep both numbers please contact support.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
numberstring · requiredThe Current MPN on the SIM which will be replaced by the number being ported in - this number will be irrevocably lost
Example: 447777777771PACstring · requiredPAC code from current provider
Example: ABC12345portinNumberstring · requiredThe MPN being ported in that will replace the number on the SIM
Example: 447777777772portinDatestring · requiredThe requested port in date - please note, this must be a minimum of 24 hours in the future, is not guaranteed and must be formatted YYYYMMDD. We would also strongly suggest not selecting weekend dates. Note: Ports can complete at any time on the day of porting.
Example: 20190129
Responses
Port Request Response
port_requestobjectPort Request Response
Example: {"trID":"1","number":"447777777771","PAC":"ABC12345","portinDate":"2025-01-02","portinNumber":"447777777772","status":"INITIAL","type":"PORT-IN"}
Porting - Request PAC
Request PAC Code to Export a UK Mobile Number from the ONSIM network. PAC's are valid for 30 days and must be supplied to your new network provider. ⚠️ IMPORTANT:: porting a number does not terminate a subscriber or your contractual obligations.
path Parameters
mpnstring · requiredMPN you wish to port and obtain a PAC Code
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
PAC Request Response
pac_requestobjectPAC Request Info
Example: {"port_id":12345,"status":"INITIAL"}