4 endpoints
Phone Number Registration
Base path: /organizations/:orgId/phone-numbers/:phoneId/registration · Source: backend/src/modules/phone-number-registration/phone-number-registration.controller.ts
/organizations/:orgId/phone-numbers/:phoneId/registration/request-code bearer
Path params
| orgId | string |
| phoneId | string |
Body
RequestCodeDtoparámetro: dtoEjemplo curl
curl -X POST 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/phone-numbers/00000000-0000-0000-0000-000000000000/registration/request-code' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{}'/organizations/:orgId/phone-numbers/:phoneId/registration/verify-code bearer
Path params
| orgId | string |
| phoneId | string |
Body
VerifyCodeDtoparámetro: dtoEjemplo curl
curl -X POST 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/phone-numbers/00000000-0000-0000-0000-000000000000/registration/verify-code' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{}'/organizations/:orgId/phone-numbers/:phoneId/registration/register bearer
Path params
| orgId | string |
| phoneId | string |
Body
RegisterDtoparámetro: dtoEjemplo curl
curl -X POST 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/phone-numbers/00000000-0000-0000-0000-000000000000/registration/register' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{}'/organizations/:orgId/phone-numbers/:phoneId/registration/deregister bearer
Path params
| orgId | string |
| phoneId | string |
Ejemplo curl
curl -X POST 'https://api.mosend.dev/organizations/a1b2c3d4-1234-5678-9abc-def012345678/phone-numbers/00000000-0000-0000-0000-000000000000/registration/deregister' \ -H 'Authorization: Bearer YOUR_TOKEN'