Create Custom Hostname response does not match the documentation

When sending a post request to the create endpoint it seems like the validation cert is not being returned in the response for the post hostname api. I would expect response.data.ssl.validation_records
https://developers.cloudflare.com/api/operations/custom-hostname-for-a-zone-create-custom-hostname

But the response is:
result: {
    id: '85efa926-8179-4c81-926e-eced6009ad63',
    hostname: 'test.exampleDomain.com',
    ssl: {
      id: 'de9b5334-8757-4b5f-85a9-5bcf3a4f0919',
      type: 'dv',
      method: 'txt',
      status: 'initializing',
      settings: [Object],
      wildcard: false,
      certificate_authority: 'google'
    },
    status: 'pending',
    ownership_verification: {
      type: 'txt',
      name: '_cf-custom-hostname.test.exampleDomain.com',
      value: '7bd6536e-dc3d-46ba-974a-9e608090a3aa'
    },
    ownership_verification_http: {
      http_url: 'http://test.exampleDomain.com/.well-known/cf-custom-hostname-challenge/85efa926-8179-4c81-926e-eced6009ad63',
      http_body: '7bd6536e-dc3d-46ba-974a-9e608090a3aa'
    },
    created_at: '2024-01-31T19:55:43.182431Z'
  },
  success: true,
  errors: [],
  messages: []
}
Interact with Cloudflare's products and services via the Cloudflare API
Was this page helpful?