A user can be associated with one or more phone numbers, which allows them to be contacted via SMS.
Create a new phone number
Success
Request was not successful
Authentication invalid
Authorization invalid
Resource not found
Invalid request parameters
{- "user_id": "string",
- "phone_number": "string",
- "verified": true,
- "primary": true,
- "reserved_for_second_factor": true
}
{- "id": "string",
- "object": "phone_number",
- "phone_number": "string",
- "reserved_for_second_factor": true,
- "default_second_factor": true,
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "backup_codes": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}
Returns the details of a phone number
Success
Request was not successful
Authentication invalid
Authorization invalid
Resource not found
{- "id": "string",
- "object": "phone_number",
- "phone_number": "string",
- "reserved_for_second_factor": true,
- "default_second_factor": true,
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "backup_codes": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}
Delete the phone number with the given ID
Deleted Object
Request was not successful
Authentication invalid
Authorization invalid
Resource not found
{- "object": "string",
- "id": "string",
- "slug": "string",
- "deleted": true
}
Updates a phone number
Success
Request was not successful
Authentication invalid
Authorization invalid
Resource not found
{- "verified": true,
- "primary": true,
- "reserved_for_second_factor": true
}
{- "id": "string",
- "object": "phone_number",
- "phone_number": "string",
- "reserved_for_second_factor": true,
- "default_second_factor": true,
- "reserved": true,
- "verification": {
- "status": "unverified",
- "strategy": "phone_code",
- "attempts": 0,
- "expire_at": 0
}, - "linked_to": [
- {
- "type": "oauth_google",
- "id": "string"
}
], - "backup_codes": [
- "string"
], - "created_at": 0,
- "updated_at": 0
}