---
description: New log IDs and request IDs are lowercase UUIDv7, and a single-step request returns one ID in cf-aig-request-id, cf-aig-log-id, and cf-aig-event-id.
title: AI Gateway log IDs and request IDs now use UUIDv7
image: https://developers.cloudflare.com/changelog/post/2026-10-08-uuidv7-log-ids/og.png?v=7e593a1851b7b5e9
---

[Skip to content](#main-content)

[View RSS feeds](https://developers.cloudflare.com/fundamentals/new-features/available-rss-feeds/) [ Subscribe to RSS](https://developers.cloudflare.com/changelog/rss/index.xml)

[Back to all posts](https://developers.cloudflare.com/changelog)

October 8, 2026

## AI Gateway log IDs and request IDs now use UUIDv7

[AI Gateway](https://developers.cloudflare.com/ai-gateway/)

Copy as Markdown| [View as Markdown](https://developers.cloudflare.com/changelog/post/2026-10-08-uuidv7-log-ids/index.md)| [Agent setup](https://developers.cloudflare.com/agent-setup/)

New AI Gateway [log](https://developers.cloudflare.com/ai-gateway/observability/logging/) IDs and request IDs are lowercase UUIDv7, such as `019a7b3e-5f2c-7c41-9d3e-2b8f6a1c4e07`. Previously, log IDs were 26-character ULIDs and request IDs were random UUIDs.

For a request that AI Gateway answers in a single step, the `cf-aig-request-id`, `cf-aig-log-id`, and `cf-aig-event-id` response headers now carry the same value. For provider and Universal requests, if you set your own `cf-aig-event-id`, AI Gateway returns it instead.

Existing log IDs do not change, and the [logs API](https://developers.cloudflare.com/api/resources/ai_gateway/subresources/logs/methods/list/) accepts both formats. Treat log IDs as opaque strings, and update any code that checks for the ULID format.

```json
{"@context":"https://schema.org","@type":"BlogPosting","@id":"https://developers.cloudflare.com/changelog/post/2026-10-08-uuidv7-log-ids/#page","headline":"AI Gateway log IDs and request IDs now use UUIDv7","description":"New log IDs and request IDs are lowercase UUIDv7, and a single-step request returns one ID in cf-aig-request-id, cf-aig-log-id, and cf-aig-event-id.","url":"https://developers.cloudflare.com/changelog/post/2026-10-08-uuidv7-log-ids/","inLanguage":"en","image":"https://developers.cloudflare.com/changelog/post/2026-10-08-uuidv7-log-ids/og.png?v=7e593a1851b7b5e9","dateModified":"2026-10-08","datePublished":"2026-10-08","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
```
