API Management

Create a new API

Create a new API from the OpenAPI specification given. See the API Catalog documentation for additional information about the possible metadata. It returns the created API ID.

post/api/v2/apicatalog/openapi

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/apicatalog/openapi
  • Auth
    • API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
    • or OAuth 2
      Authorization code: /oauth2/v1/authorize
      Token URL: /oauth2/v1/token scopes: apm_api_catalog_write

Request body multipart/form-data

openapi_spec_filestring binary

Binary OpenAPI spec file

Response

API created successfully

Example response

{
  "data": {
    "id": "90646597-5fdb-4a17-a240-647003f8c028"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.