get Webhook
https://{yourserver.com}/newSms
We've added a webhook feature for you! You can set a URL in your profile settings (https://onlinesim.io/v2/profile/api) and as soon as we get SMS for any number that you've ordered, it will forwarded to you. This works for both single-service and long term rental!
The schema of incoming payload is described in the response section.
Servers
https://{yourserver.com}
Security
Responses
200
Successful request example
Content Type:
application/json
- Schema
- objectExample:
{"user_id":"string","country_code":"string","number":"string","sender":"string","message":"string","time_start":"string","time_left":"string","operation_id":"string","webhook_type":"receiving_sms","code":"string"}
Properties:user_id
stringYour Profile's IDExample:"string"
country_code
stringInternational country code of the number, that has received SMSExample:"string"
number
stringPhone number in international formatExample:"string"
sender
stringSender's name or phone numberExample:"string"
message
stringSMS contextExample:"string"
time_start
stringDate and time when operation was orderedExample:"string"
time_left
stringRemaining time for the operationExample:"string"
operation_id
stringOperation IDExample:"string"
webhook_type
anyType of service (single service or rent)Example:"receiving_sms"
Enum:receiving_sms
rent_sms
code
stringSMS IDExample:"string"