---
title: "Create a new API"
method: POST
path: "/api/v2/apicatalog/openapi"
tags: ["API Management"]
deprecated: true
---

# Create a new API

`POST /api/v2/apicatalog/openapi`

> **Deprecated.**

Create a new API from the [OpenAPI](https://spec.openapis.org/oas/latest.html) specification given.
See the [API Catalog documentation](https://docs.datadoghq.com/api_catalog/add_metadata/) for additional
information about the possible metadata.
It returns the created API ID.

## Response `201`

API created successfully

- CreateOpenAPIResponse — Response for `CreateOpenAPI` operation.
  - `data` CreateOpenAPIResponseData — Data envelope for `CreateOpenAPIResponse`.
    - `attributes` CreateOpenAPIResponseAttributes — Attributes for `CreateOpenAPI`.
      - `failed_endpoints` OpenAPIEndpoint[] — List of endpoints which couldn't be parsed.
        - `method` string — The endpoint method.
        - `path` string — The endpoint path.
    - `id` string, uuid — API identifier.

## Other responses

- `400` — Bad request
- `403` — Forbidden
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
