Header (x-tyk-base-api-id) not visible when trying to version an OAS API

I’m following the Versioning an OAS API documentation. All is well until the Get your version API section.

when you get the second API you will see x-tyk-base-api-id header. <— I don’t see this?

then…

curl -v --location --request GET ‘http://{your-tyk-host}:{port}/apis/oas/{version-api-id}’
–header ‘x-tyk-authorization: {your-secret}’

What is the version-api-id supposed to be?

Hi Doug,

Sorry for the delayed response.

This should be the base-api ID. I have attached a snippet of my response below

HTTP/1.1 200 OK
Content-Type: application/json
X-Tyk-Base-Api-Id: d75faff558854777a6de08171be1121a
Date: Tue, 15 Aug 2023 10:14:42 GMT
Content-Length: 362
Connection: close

{{ Body goes here }}

Can you try using the versions API endpoint to confirm the base api is indeed versioned

GET /tyk/apis/oas/{api_id}/versions

You should get something similar to this

{
  "status": "success",
  "apis": [
    {
      "id": "d75faff558854777a6de08171be1121a",
      "name": "Petstore",
      "versionName": "v1",
      "internal": false,
      "expirationDate": "",
      "isDefaultVersion": true
    },
    {
      "id": "e3d41eae6131475c93492d4ffc18f2a5",
      "name": "Httpbin",
      "versionName": "v2",
      "internal": false,
      "expirationDate": "",
      "isDefaultVersion": false
    }
  ]
}

Let us know if this helps.