OpenAPI is an industry standard specification for describing APIs. We use OpenAPI to describe all our APIs, and we make those specifications publicly available too.

Finding an OpenAPI Specification

Each of our products has its own OpenAPI specification. The easiest way to find it is from the API reference - at the top of the page you'll find a "Download OpenAPI 3 Definition" button. The API reference pages themselves are generated from these specifications.

Button with label: Download OpenAPI3 Definition

The spec files for each API product are also available on a GitHub repository if you'd like to browse the list directly.

Each specification is in YAML format; you can view it with an plain text editor.

Use an OpenAPI Specification in Your Own Projects

Having the OpenAPI description of an API that you want to integrate with can really make things easier! Here are some suggestions that you might like to try:

Local Documentation

Whether you're working on a poor connection or prefer to keep things straightforward, an OpenAPI spec has all the information you need to be able to run a local application to show documentation. Try one of these tools:

  • Nexmo OAS Renderer is an open source Ruby tool (as you may guess from the name, we created and maintain it)
  • ReDoc is another open source documentation tool, in JavaScript

Postman Collections

If you're already a Postman fan then this may well appeal to you. If not, then give it a try.

  1. Download the spec for the API you're interested (via the API reference page)
  2. In Postman, click "Import" and choose the *.yml file you downloaded

.... that's it. You have a ready-made set of requests to make against the API, now add your Vonage account details and off you go!

See our Guide to Postman for more examples and advanced usage.

Mock Server for Testing with Prism

One tool that many of our developers find useful is Prism. It's an open source JavaScript tool that accepts an OpenAPI spec and then imitates the API behavior it describes. It's an ideal way to work with a local API, avoids using up account credit when you're testing something, and also provides a way to test error responses locally.

We have a more detailed guide to working with Prism and OpenAPI that you may find useful.