GET
/projects/{project_id}/branches/{branch_id}/auth/plugins/phone-numberRetrieve phone number plugin configurationReturns the phone number plugin configuration for Neon Auth. The phone number plugin enables phone-based OTP authentication.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe Neon branch ID
Responses
objectNeonAuthPhoneNumberConfig
enabledbooleanrequiredWhether the phone number plugin is enabled.
otp_expires_inintegerTime in seconds before the OTP expires
{
"enabled": false,
"otp_expires_in": 300
}objectGeneralError
codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}