Scott Pedersen
08/06/2026, 9:42 PMMarvin
08/06/2026, 9:43 PMMarvin
08/06/2026, 9:44 PMprefect-cloud.service-account.created
- This gives you the exact timestamp
- Audit Log availability depends on your plan
3. Cloud API
Service accounts are represented internally as “bots”, and the API response includes a created field.
Relevant endpoint:
- GET /api/accounts/{account_id}/bots/{id}
That response includes fields like:
json
{
"id": "uuid",
"created": "2024-08-06T10:30:00+00:00",
"updated": "2024-08-06T15:45:00+00:00",
"name": "my-service-account"
}
There’s also an events endpoint if you want to check audit-style records:
- GET /api/accounts/{account_id}/events
One caveat: there does not appear to be a Prefect CLI command for listing service accounts or their creation times.
Useful docs:
- Service accounts docs
- Audit log docs
- Prefect Cloud API reference
If you want, I can also help you with a small script to fetch the created timestamp from the Cloud API.