API Requests in Postman#
Postman is a graphical tool for building, sending, and debugging API requests without writing code. You can use it to explore the DIDWW API, inspect responses, confirm your API keys, and prototype integrations before adding them to your application.
Note
This guide uses the DIDWW API3 2026-11-19 (Latest) collection.
This collection uses your API key to obtain short-lived access tokens automatically and sends them in the Authorization: Bearer header.
See Authentication for API v2026-11-19.
Collections for API 2026-04-16 and earlier send the API key directly in the Api-Key header and use a different setup.
See Collections for API 2026-04-16 and Earlier.
Before You Begin#
An active account with DIDWW is required. Create Your Account.
Create at least one active API key in the DIDWW User Panel. See Create API Key.
For a Sandbox account, API key, test funding, and safe first request, see the DIDWW API Sandbox guide.
Sign in to an active Postman account. Create an account. The steps are the same in the Postman web app and the Postman desktop app.
Warning
Use the Sandbox environment for testing. Requests sent with the Production environment act on your live DIDWW account and can create orders and charges.
Step 1: Fork the DIDWW API Collection#
Create a personal copy of the official DIDWW API collection in your Postman workspace so you can edit and test the requests.
Click Run in Postman, then click Fork Collection. On the Postman page that opens, select your workspace and click Fork collection. The button forks the DIDWW API3 2026-11-19 (Latest) collection and adds a DIDWW Sandbox environment to the same workspace. To fork the collection manually or include the DIDWW Production environment, follow the steps below instead.
Fork the Collection Manually#
Open the official DIDWW API Postman Workspace.
In the Collections sidebar, right-click DIDWW API3 2026-11-19 (Latest) and select Use / Fork.
Select the Workspace for your copy and keep Fork selected under Use as.
Optionally, change the Fork label.
In Environments to fork, select DIDWW Sandbox, DIDWW Production, or both. Their hostnames are already configured, and you add your own API key in Step 2.
Optionally, select Watch the source collection to be notified about changes to the official collection.
Click Use Collection.
The forked collection and environments appear in your workspace with the fork label next to their names.
Fig. 1. Forking the collection and the Sandbox environment#
Step 2: Add Your API Key to the Environment#
A Postman environment stores the hostnames and the API key for Sandbox or Production. The DIDWW Sandbox and DIDWW Production environments already contain the hostnames, so you only add your API key.
In your workspace, open Environments and select your copy of DIDWW Sandbox. For Production, select DIDWW Production instead.
In the apiKey row, replace the placeholder value with the API key from the matching User Panel. Use a Sandbox API key for DIDWW Sandbox and a Production API key for DIDWW Production.
Leave the hostnames unchanged.
In the environment selector in the top-right corner of Postman, select the environment. Postman uses the values of the selected environment for every request.
Warning
The value you enter stays local to your Postman account unless you share it from the menu next to the value. Do not share the API key or put it in screenshots, code samples, or public repositories. If it becomes exposed, delete it and create a replacement in the DIDWW User Panel immediately. See How to Rotate Your API Key.
Fig. 2. Sandbox environment with the API key added#
The environments contain the following variables. If you create an environment manually instead of forking it, add these variables with the values shown.
Variable |
DIDWW Sandbox |
DIDWW Production |
Description |
|---|---|---|---|
|
|
|
Main API, including DID numbers and account resources. |
|
|
|
Inbound Call Rates service. |
|
|
|
Outbound Call Rates service. |
|
|
|
SMS Rates service. |
|
|
|
Token service that issues access tokens. |
|
Your Sandbox API key |
Your Production API key |
API key from the matching User Panel. |
Note
Enter only the hostname, without https:// or a path such as /v3 or /token.
The collection adds these parts when building each request URL.
For example, with host set to sandbox-api.didww.com, https://{{host}}/v3/dids becomes https://sandbox-api.didww.com/v3/dids.
Step 3: Send Your First Request#
Send Get DIDs to confirm that the setup works. This request only reads data and does not change your account.
Make sure the environment selector shows the environment you configured in Step 2.
In your forked collection, go to Inventory Resources > DID > Get DIDs.
Open the Authorization tab. It shows Bearer Token with the Inherited label and
{{accessToken}}in the Token field. The request uses the access token of the collection, so do not enter your API key here.Click Send.
A successful request returns 200 OK with a JSON:API response that lists the DIDs of your account.
Fig. 3. Get DIDs request and its successful response#
How the Collection Authenticates#
You never paste or refresh an access token yourself.
Before the first request, the collection sends your
apiKeytoPOST https://{{authHost}}/tokenand stores the returned token inaccessToken.It reuses the token and obtains a new one shortly before the token expires.
Each request sends the token in an
Authorization: Bearerheader that Postman generates automatically. To see it, open the Headers tab and click the hidden headers button. Postman hides the token value.
To check token creation on its own, open Authentication > Mint access token and click Send.
This request sends your apiKey in the Api-Key header with Content-Type: application/json.
The response contains access_token and expires_in, the token lifetime in seconds.
For token fields, service audiences, and endpoint-specific exceptions, see Authentication for API v2026-11-19.
The requests in the collection already set the JSON:API headers.
Header |
Value |
Description |
|---|---|---|
|
|
Requests a JSON:API response. |
|
|
Identifies a JSON:API request body, for example when creating or updating a resource. |
|
|
Generated by Postman from the Bearer Token authorization of the collection. |
For more about hostnames and headers, see the DIDWW API Sandbox authentication section and Specification headers.
Step 4: Troubleshoot Errors#
If the response is not 200 OK, check the status code in the response panel.
401 Unauthorized
The API key or the access token is missing or invalid.
Check that the selected environment contains the correct apiKey and authHost.
When the collection cannot obtain a token, the request reports the reason as a script error.
Send Authentication > Mint access token to see the response of the token service.
In API version 2026-11-19, resource requests such as Get DIDs require an access token and refuse the Api-Key header.
The API key is used to obtain the token, and only a few operations, such as downloading an export file, also accept it.
See Authentication for API v2026-11-19.
404 Not Found
The hostname, endpoint path, or resource ID may be incorrect.
For Get DIDs, make sure host is sandbox-api.didww.com for Sandbox or api.didww.com for Production, and that the request URL is https://{{host}}/v3/dids.
406 Not Acceptable
The Accept header is incorrect. Set it to application/vnd.api+json.
415 Unsupported Media Type
The Content-Type header is missing or incorrect.
Set it to application/vnd.api+json for requests with a JSON:API body, such as creating or updating a resource.
The Mint access token request is an exception and uses application/json.
422 Unprocessable Entity
The request body is missing required fields or is not valid JSON:API. Make sure POST and PATCH requests follow the JSON:API document structure.
Collections for API 2026-04-16 and Earlier#
The official workspace also contains a collection for each earlier API version, for example DIDWW API3 2026-04-16. These collections do not use access tokens.
Fork the collection of your API version as described in Fork the Collection Manually.
The environment needs only
hostandapiKey.Each request sends
{{apiKey}}directly in theApi-Keyheader, together with the JSON:API headers.The collections do not include the Authentication folder or the
authHostvariable.
Do not combine the two setups.
Resource requests in API versions up to 2026-04-16 authenticate with the Api-Key header.
In version 2026-11-19, they authenticate with Authorization: Bearer, and the API key is used mainly to obtain the access token.
See Authentication for API v2026-11-19 and API Versioning and Deprecation Policy.