Hello , I am trying to get the subscriber id using phone number as a query, but it always returns and empty array. For eg
I created a new subscriber using the following POST endpoint
https://api.statuspage.io/v1/pages/{page_id}/subscribers
with the body
{ "subscriber": { "phone_number": "111-222-3333", "skip_confirmation_notification": false } }
(I used a valid phone number)
and it returned the 201 response with the data along with the subscriber id
but when I try to get subscriber Id from the following GET endpoint
https://api.statuspage.io/v1/pages/{my_page_id}/subscribers?q=1112223333&type=sms
I always receive an empty array. The same thing works perfectly find with email, not sure why phone number is not working.
Let me know if I am doing something wrong with the query params in the get call.
Thank you,
Arjun Dass
Hi Arjun,
Thank you for reaching out to the StatusPage Community.
We understand that you are looking to retrieve the subscriber ID using a phone number in your query. There are a few important factors to consider when running API calls for type=sms:
1. Ensure that the subscriber is confirmed/active and not quarantined.
2. Verify that the subscriber has a phone number associated with their account.
To confirm the presence of a phone number, you can use the following API call:
GET https://api.statuspage.io/v1/pages/{my_page_id}/subscribers?type=sms
This will return a list of subscribers who have an associated phone number and are active.
Once you have verified this, you can proceed to query using the phone number directly:
GET https://api.statuspage.io/v1/pages/{my_page_id}/subscribers?q=1112223333
I hope this information helps! Please consider reaching out to Atlassian support for further assistance if the above does not help.
Best regards,
Nayan
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.