How to use our API Reference
Streamlined Navigation
The interface of the API Reference is divided into three main areas to ensure easy readability:
- The Sidebar (Left): This groups all endpoints by category (e.g., Messages, Campaigns, Content, List...). It is your map for navigating the Numberly Martech Platform ecosystem.
- The Center Pane: This is where you will find technical details: parameters, request bodies, and field descriptions.
- The Interaction Panel (Right): This is your testing ground. It allows you to run requests and view the generated code.
The Playground: Test without writing a single line of code
This is our documentation’s flagship feature. You don't need to open Postman or your terminal to verify if a request works. You can do it directly from your browser.
How to run a test request?
1. Authentication
Note : Ensure you have a service account (username and password) to generate your access token. You will also need your client-specific
subdomain. You must specify it for every API call.
Locate the "Authentication" button or section. Enter your username and password to generate an authentication token. The interface will remember your credentials for your entire session.
2. Fill in parameters: Click the "Test Request" button for the request you want to test. In the Request section, fill in the required fields (e.g., campaign_id, date, etc.). The interface indicates the expected data type (string, integer, boolean).
3. Run the request: Click the "Send" button.
4. Analyze the response: The result appears immediately below. You will see the HTTP status (e.g., 200 OK), headers, and the JSON response body.
4. Understanding Data Schemas
For each endpoint, we document exactly what you send and what you receive.
- Request Body: Click on the different tabs or arrows to explore the expected JSON structure. Mandatory fields are marked with a "required" attribute.
- Responses: We don't just show success cases. You can also preview different error types to know how your application should react if a problem occurs.
Authentication
The NMP API utilizes the OAuth 2.0 standard with the client_credentials grant type (RFC 6749). This method is specifically designed for secure server-to-server communications, where your application authenticates itself rather than acting on behalf of an end user. The process consists of two main steps: obtaining a temporary access token, and subsequently using this token to authenticate your requests.
Send your first campaign
Sending a campaign via the NMP API is a structured process that goes beyond a single call. It requires preparing your 'assets' (content, data) and retrieving technical configurations before assembling everything into the Campaign object. This guide details the end-to-end flow: from resource creation to analyzing sent messages.