Skip to main content
POST
Create an API with Tyk OAS format.

Authorizations

X-Tyk-Authorization
string
header
required

Api key

Query Parameters

base_api_id
string

The base API which the new version will be linked to.

base_api_version_name
string

The version name of the base API while creating the first version. This doesn't have to be sent for the next versions but if it is set, it will override base API version name.

new_version_name
string

The version name of the created version.

set_default
boolean

If true, the new version is set as default version.

Body

application/json

The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3

openapi
string
required
Pattern: ^3\.0\.\d(-.+)?$
info
object
required
paths
object
required
externalDocs
object
servers
object[]
security
object[]
tags
object[]
components
object
x-tyk-api-gateway
object

Response

API created.

action
string
Example:

"modified"

key
string
Example:

"b13d928b9972bd18"

key_hash
string
status
string
Example:

"ok"