IDs
For almost all entities in widged.io, there are special identifiers. Typically, the identifier looks like this:
ses_s_GfLNq0u_FiF0l0pXJve0ZHa2xmGeZ4LEh8uHZjvl
Identifiers are case-sensitive and consist of the following character set: A-Z
, a-z
, 0-9
, and _
as a separator. This allows any identifier to be easily highlighted with a mouse click for copying.
Each identifier always has a type, which helps immediately determine which entity this identifier belongs to. Typically, the type is an abbreviation of the entity's name. For example, ses
refers to a user session. The identifier also contains information about when it was generated, where (client/server), and a random sequence to ensure uniqueness. The length of the random part is not fixed and can vary. The random part is generated randomly, with each symbol having an equal probability of appearing.
Exceptions are made only for widget, organization, and user identifiers.
For widgets, the identifier consists of 8 characters: A-Z
, a-z
, 0-9
for shortness. For organizations, the identifier consists of digits for shortness and to avoid confusion with the widget identifier. For users, a regular UUIDv4 is used but you will not use it in your work.