import OAS

POST {{baseUrl}}/api/apis/oas/import?upstreamURL=aute eu ullamco nostrud&listenPath=aute eu ullamco nostrud&customDomain=aute eu ullamco nostrud&allowList=<string>&validateRequest=<string>&authentication=<string>

Create a new OAS format API, without x-tyk-gateway. For use with an existing OAS API that you want to expose via your Tyk Gateway. (New)

Request Params

KeyDatatypeRequiredDescription
upstreamURLstringUpstream URL for the API
listenPathstringListen path for the API
customDomainstringCustom domain for the API
allowListstringEnable allowList middleware for all endpoints
validateRequeststringEnable validateRequest middleware for all endpoints having a request body with media type application/json
authenticationstringEnable/disable the authentication mechanism in your Tyk Gateway for your OAS API

Request Body

{"value"=>"reference https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json not found in the OpenAPI spec"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;status&quot;:&quot;ok&quot;,&quot;action&quot;:&quot;added&quot;,&quot;key&quot;:&quot;{created APIID}&quot;}