> For the complete documentation index, see [llms.txt](https://user.netmera.com/netmera-developer-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/channels-and-permissions/sms/add-phone-numbers.md). Agents can also search and read this documentation through its [MCP server](https://user.netmera.com/netmera-developer-guide/~gitbook/mcp).

# Add Phone Numbers

Adds users with the given MSISDNs (phone numbers) to Netmera. Use it only to upload phone number lists.

<details>

<summary>Notes</summary>

* Phone numbers must include the country code, in the format `+90xxxxxxxx`.
* If a user already has the MSISDN, for example a user with an external ID or one added earlier with this endpoint, no new user is created.
* Otherwise a new user is created in the dashboard. It has no installation ID, so none appears when you search by user ID in the People section.
* Users created with this endpoint are visible in the dashboard.
* If the SDK later creates a user with the same MSISDN, the user created here is deleted. SDK data is primary, and targeting uses the SDK user.
* Uploads are limited by request size in KB, with no maximum number of records.
* If the request cannot be put into the processing queue, the error is only logged and the call still returns 200.

</details>

```json
{"openapi":"3.1.0","info":{"title":"Netmera REST API","version":"3.0"},"tags":[{"name":"SMS","description":"Add, update or remove a user's phone number and manage SMS permission.\n\n<table data-view=\"cards\"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type=\"content-ref\"></th></tr></thead><tbody><tr><td><strong>Add Phone Numbers</strong></td><td><code>POST</code> Adds users with the given MSISDNs (phone numbers) to Netmera.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/channels-and-permissions/sms/add-phone-numbers\">Add Phone Numbers</a></td></tr><tr><td><strong>Update Phone Number</strong></td><td><code>POST</code> Updates the MSISDN (phone number) of a user.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/channels-and-permissions/sms/update-phone-number\">Update Phone Number</a></td></tr><tr><td><strong>Remove Phone Number</strong></td><td><code>POST</code> Removes a user's MSISDN (phone number).</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/channels-and-permissions/sms/remove-phone-number\">Remove Phone Number</a></td></tr><tr><td><strong>Enable SMS Permission</strong></td><td><code>POST</code> Grants SMS permission to users.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/channels-and-permissions/sms/enable-sms-permission\">Enable SMS Permission</a></td></tr><tr><td><strong>Disable SMS Permission</strong></td><td><code>POST</code> Revokes SMS permission from users.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/channels-and-permissions/sms/disable-sms-permission\">Disable SMS Permission</a></td></tr></tbody></table>\n"}],"servers":[{"url":"https://restapi.netmera.com","description":"Netmera REST API"}],"security":[{"REST-API-key":[]}],"components":{"securitySchemes":{"REST-API-key":{"type":"apiKey","in":"header","name":"X-netmera-api-key","description":"REST API key. Available in the Netmera Panel under Developers > API.\n"}},"schemas":{"NetmeraError":{"type":"object","description":"Standard Netmera error body.","required":["code","error"],"properties":{"code":{"type":"integer","description":"Netmera error code. See the error table in the API description."},"error":{"type":"string","description":"Human readable error message."}}},"ProblemDetail":{"type":"object","description":"RFC 7807 error body returned by the framework instead of the Netmera error body when a\nrequired query parameter is missing or a parameter cannot be converted to its type.\n","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}}}},"responses":{"InvalidApiKey":{"description":"The `X-netmera-api-key` header is missing or the key is not valid.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetmeraError"}}}},"IpNotAllowed":{"description":"The application restricts REST calls to a list of allowed IP addresses and the caller's\nIP is not on it. The check runs after the API key is validated and before the request\nbody and parameters are validated, so a restricted application returns this error even\nfor a malformed request.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetmeraError"}}}}}},"paths":{"/rest/3.0/addMsisdn":{"post":{"operationId":"addMsisdn","tags":["SMS"],"summary":"Add Phone Numbers","description":"Adds users with the given MSISDNs (phone numbers) to Netmera. Use it only to upload phone number\nlists.\n\n<details>\n\n<summary>Notes</summary>\n\n- Phone numbers must include the country code, in the format `+90xxxxxxxx`.\n- If a user already has the MSISDN, for example a user with an external ID or one added earlier with\n  this endpoint, no new user is created.\n- Otherwise a new user is created in the dashboard. It has no installation ID, so none appears when\n  you search by user ID in the People section.\n- Users created with this endpoint are visible in the dashboard.\n- If the SDK later creates a user with the same MSISDN, the user created here is deleted. SDK data\n  is primary, and targeting uses the SDK user.\n- Uploads are limited by request size in KB, with no maximum number of records.\n- If the request cannot be put into the processing queue, the error is only logged and the call\n  still returns 200.\n\n</details>\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"msisdnList":{"type":"array","description":"Phone numbers to add, each including the country code.","items":{"type":"string"}}}}}}},"responses":{"200":{"description":"The MSISDN list was accepted. Returns no response body.\n"},"400":{"description":"Error responses the API can return.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetmeraError"}},"text/plain":{"schema":{"type":"string"}},"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"401":{"$ref":"#/components/responses/InvalidApiKey"},"403":{"$ref":"#/components/responses/IpNotAllowed"},"415":{"description":"Error responses the API can return.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/channels-and-permissions/sms/add-phone-numbers.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
