The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot get Subscriber id from phone number

Arjun Dass
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 11, 2025

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

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Nayan Pandey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 14, 2025

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

TAGS
AUG Leaders

Atlassian Community Events