Format
All IDs follow the same pattern:ID Reference
Using prefixed IDs
Type checking
Because the prefix encodes the resource type, you can validate IDs before making API calls.Logging and debugging
Prefixed IDs make it easy to trace activity across resources in your logs. A log entry containingcred_a1b2c3d4 and trun_x9y8z7 immediately tells you which credential and task run were involved, without needing to cross-reference separate tables.
Cross-referencing resources
Many API responses include related resource IDs. A task run object, for example, includestask_id, credential_id, agent_id, and source_id. The prefixes let you quickly verify the relationships are correct.
Notes
- IDs are immutable. Once assigned, they never change.
- IDs are globally unique. You will never see the same ID across different resource types or organizations.
- IDs are case-sensitive.
agt_A1B2andagt_a1b2are different identifiers. - Passing an ID with the wrong prefix to an endpoint returns a
400validation error.