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#

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#

  1. Open the official DIDWW API Postman Workspace.

  2. In the Collections sidebar, right-click DIDWW API3 2026-11-19 (Latest) and select Use / Fork.

  3. Select the Workspace for your copy and keep Fork selected under Use as.

  4. Optionally, change the Fork label.

  5. 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.

  6. Optionally, select Watch the source collection to be notified about changes to the official collection.

  7. Click Use Collection.

The forked collection and environments appear in your workspace with the fork label next to their names.

Use dialog for the DIDWW API3 2026-11-19 collection with Fork selected and one environment to fork

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.

  1. In your workspace, open Environments and select your copy of DIDWW Sandbox. For Production, select DIDWW Production instead.

  2. 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.

  3. Leave the hostnames unchanged.

  4. 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.

Forked DIDWW Sandbox environment with the API key value hidden and the environment selected in the top-right corner

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

host

sandbox-api.didww.com

api.didww.com

Main API, including DID numbers and account resources.

vinHost

api-vin-sandbox.didww.com

api-vin.didww.com

Inbound Call Rates service.

voutHost

api-vout-sandbox.didww.com

api-vout.didww.com

Outbound Call Rates service.

smsHost

api-sms-sandbox.didww.com

api-sms.didww.com

SMS Rates service.

authHost

auth-sandbox.didww.com

auth.didww.com

Token service that issues access tokens.

apiKey

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.

  1. Make sure the environment selector shows the environment you configured in Step 2.

  2. In your forked collection, go to Inventory Resources > DID > Get DIDs.

  3. 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.

  4. Click Send.

A successful request returns 200 OK with a JSON:API response that lists the DIDs of your account.

Get DIDs request with inherited Bearer Token authorization and a 200 OK JSON response

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 apiKey to POST https://{{authHost}}/token and stores the returned token in accessToken.

  • It reuses the token and obtains a new one shortly before the token expires.

  • Each request sends the token in an Authorization: Bearer header 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

Accept

application/vnd.api+json

Requests a JSON:API response.

Content-Type

application/vnd.api+json

Identifies a JSON:API request body, for example when creating or updating a resource.

Authorization

Bearer {{accessToken}}

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 host and apiKey.

  • Each request sends {{apiKey}} directly in the Api-Key header, together with the JSON:API headers.

  • The collections do not include the Authentication folder or the authHost variable.

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.