Get a phone number
curl --request GET \
--url https://api.pomerado.ai/v1/logins/{id}/sms-number \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pomerado.ai/v1/logins/{id}/sms-number', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pomerado.ai/v1/logins/{id}/sms-number"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"phone_number": "<string>",
"status": "linked",
"linked_at": "<string>",
"verified_at": "<string>",
"verification": {
"expires_at": "<string>",
"code_received": true,
"code": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}2FA
Get a phone number
Returns the Pomerado phone number that receives a saved login’s text-message sign-in codes.
GET
/
v1
/
logins
/
{id}
/
sms-number
Get a phone number
curl --request GET \
--url https://api.pomerado.ai/v1/logins/{id}/sms-number \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pomerado.ai/v1/logins/{id}/sms-number', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pomerado.ai/v1/logins/{id}/sms-number"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"phone_number": "<string>",
"status": "linked",
"linked_at": "<string>",
"verified_at": "<string>",
"verification": {
"expires_at": "<string>",
"code_received": true,
"code": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}Details
Details
- During a verification, verification shows whether a code arrived and the newest code.
- A login without a number returns sms_number_not_linked.
- Callers: an API key, an MCP OAuth token or a Dashboard session.
-
Permission:
logins:manage. - Effect: Changes nothing.
-
Errors:
not_found,sms_number_not_allowed,sms_number_not_linked, and the errors any request can get.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
a saved login ID: login_ and 32 lowercase hex digits
Example:
"login_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"