POST /_system/security/methods/sms
Create SMS-based 2FA authentication method
Create SMS-based 2FA authentication method
| Key | Type | Example | Description |
|---|---|---|---|
| authorization required | string |
"Bearer access_token"
|
Access token
|
| Key | Type | Example | Description |
|---|---|---|---|
| phone_number required | string |
"+1234567890"
|
|
| name optional | string |
"My Phone"
|
{
"sms_send": true
}
{
"error": "ERROR_KEY"
}
| Permission | Description |
|---|---|
Bearer token |
Access token required via Authorization header, x-authtoken, x-token, query param, or cookie |
users_twofactorauth_create |
Required scope: users_twofactorauth_create |
Back to System Security Return to the System Security category to view other endpoints All API Categories Browse all available API categories