Max length of the returned IDs

When we interact with the API we keep on getting resulting IDs for clients/projects/workspaces etc. etc.

Is there anywhere that lists the max length for these IDs? I would like to know so that I can setup my tables to this length

Thanks.

Hi there, welcome to Clockify Forum!

Please note that the maximum number of characters in IDs is 24, so you can use that number as a reference while creating tables.

Hope this helps, have a good one!

1 Like

You may find it useful to realise the ID’s are Mongo DB Object ID’s see https://www.mongodb.com/docs/manual/reference/method/ObjectId/ - 12 bytes of data that become 24 when represented as a hexadecimal string (1 byte has range 0 to 255 so hex string 00 to ff)