Id Conventions

Id prefixes

Id fields returned by the Nyckel API are made up of a human-readable prefix, an underscore, and an alpha-numeric id — for example label_2n5a7za51n329v0l or function_a1b2c3d4.

It is not strictly necessary to send the prefix when calling API endpoints — the underlying id is unique on its own — but we recommend treating the entire string, including the prefix, as the canonical id. Two practical reasons:

Store and pass the full prefixed string everywhere; only strip the prefix if you have a very specific reason to.