Thank you for filling out the form. One of our mobile experts will be in touch shortly to discuss your inquiry.
If you have any other questions please feel free to email us directly at info@mitto.ch
Thank you for filling out the form. One of our mobile experts will be in touch shortly to discuss your inquiry.
If you have any other questions please feel free to email us directly at info@mitto.ch
Mitto’s Number Masking API lets you enable communication between two parties without revealing their phone numbers to one another. With this API you can:
We organize our documentation as follows:
This section provides general information about the Mitto Numer Masking API such as endpoints, methods, and response format.
To get started with Mitto, do the following:
1. Sign up for a Mitto account at https://www.mitto.ch/contact/ or write to info@mitto.ch.
2. Submit the IPs you want to use for requests. They must be whitelisted on Mitto’s system.
3. Mitto will respond with your API key and confirmation that your IP addresses and callback URL are configured.
The Number Masking API has multiple endpoints.
You must create an application and assign phone numbers to it made available by your service provider. This creates a pool of mask numbers that can be drawn from whenever you need to mask someone’s phone number in your application.
You create an application by sending a POST request to:
https://cpaas.mittoapi.com/numbermasking/applications
To retrieve a list of your applications, you send a GET request to:
https://cpaas.mittoapi.com/numbermasking/applications/search
You can retrieve details about a specific application if you have the identification number for the application. Send a GET request to:
https://cpaas.mittoapi.com/numbermasking/applications/search/{ApplicationSid}
You can update details about an existing application. Send a PUT request to:
https://cpaas.mittoapi.com/numbermasking/applications/{ApplicationSid}
Delete any application you created by sending a DELETE request to:
https://cpaas.mittoapi.com/numbermasking/applications/{ApplicationSid}
You can see what phone numbers can be used for masking. Send a GET request to:
https://cpaas.mittoapi.com/numbermasking/phonenumbers/search
Retrieve a single, specific phone number for phone masking if it is available. Send a GET request to:
https://cpaas.mittoapi.com/numbermasking/phonenumbers/search/{phoneNumberSid}
You can add a phone number to a mask number pool for an application. Send a POST request to:
https://cpaas.mittoapi.com/numbermasking/maskednumbers
Get a list of all the masked numbers for a particular application. Send a GET request to:
https://cpaas.mittoapi.com/numbermasking/maskednumbers/search
Retrieve a specific masked number. Send a GET request to:
https://cpaas.mittoapi.com/numbermasking/maskednumbers/search/{MaskNumberSid}
Update a masked number. Send a PUT request to:
https://cpaas.mittoapi.com/numbermasking/maskednumbers/{maskNumberSid}
Remove a masked number from an application’s masked number pool. Send a DELETE request to:
https://cpaas.mittoapi.com/numbermasking/maskednumbers/{maskNumberSid}
A context is a single instance of two individuals communicating. It belongs to an application and maps two participants. Create a context by sending a POST request to:
https://cpaas.mittoapi.com/numbermasking/contexts
To see what contexts you created under a particular application, send a GET request to:
https://cpaas.mittoapi.com/numbermasking/contexts/search
Retrieve a specific context from an application. Send a GET request to:
https://cpaas.mittoapi.com/numbermasking/contexts/search/{ContextSid}
Update an existing context with a PUT request to:
https://cpaas.mittoapi.com/numbermasking/contexts/{ContextSid}
You can delete a context you created by sending a DELETE request to:
https://cpaas.mittoapi.com/numbermasking/contexts/{ContextSid}
Add participants to a context with a POST request to:
https://cpaas.mittoapi.com/numbermasking/participants
You can retrieve a list of participants in a context. Send a GET request to:
https://cpaas.mittoapi.com/numbermasking/participants/search
Retrieve a single participant from a context. Send a GET request to:
https://cpaas.mittoapi.com/numbermasking/participants/search/{ParticipantSid}
Remove a participant from a context. Send a DELETE request to:
https://cpaas.mittoapi.com/numbermasking/contexts/{ContextSid}
An interaction is a call detail record for a given context. Each interaction represents a single communication caller and called participant. Get a list of interactions with a GET request to:
https://cpaas.mittoapi.com/numbermasking/interactions/search
You can retrieve an individual interaction. Send a GET request to:
https://cpaas.mittoapi.com/numbermasking/interactions/search/{INteractionSid}
The response and content varies slightly by endpoint. The general format is to return a status code, message, any pagination information, and then a data dictionary. Here’s an example without pagination:
{
"data": {
"sid":"NMPb6eb071d21124dbab20b095c25f1111d",
"applicationSid":"NMAb6eb071d21124dbab20b095c25f1274f",
“contextSid”:”NMCb6eb071d21124dbab20b095c25f8932x”,
“participantPhoneNumber”:”15555556943”,
“friendlyName”:”My Mobile”,
“maskPhoneNumber”:”12013507693”,
“maskPhoneNumberSid”:”NMMb6eb071d21124dbab20b095c25f8944a”,
“accountEmail”:"email@company.com,
"dateCreated":"2019-07-22 09:53:51",
"dateUpdated":"2019-07-22 09:53:51",
"url":/numbermasking/participants/search/NMPb6eb071d21124dbab20b095c25f1111d"
},
"code": 200,
"message": "OK"
}
For more details, refer to the Number Masking Use Cases section.
Mitto’s Number Masking API uses basic authentication for each request. Basic authentication is a simple authentication method that’s built into the HTTP protocol. You send HTTP requests with an Authorization header formatted like so:
Authorization: Basic base64(accountID:API key)
In the example, you would replace base64(accountID:API key) with a base64-encoded string where the string consisted of “accountID:API key”.
For examples of requests using basic authentication, refer to Number Masking Use Cases.