Skip to main content

odin_access_key_id

Retrieves the key ID associated with an access key. The key ID is embedded in room tokens, enabling the identification of the corresponding public key required for verification.

See our guides on access keys and tokens for more information.

Declaration
OdinReturnCode odin_access_key_id(const char *access_key, char *out_key_id, size_t out_key_id_len);

Parameters

access_key

Pointer to the access key whose key ID is to be retrieved.

Declaration
const char *access_key;

out_key_id

Pointer to a buffer where the key ID will be stored.

Declaration
char *out_key_id;

out_key_id_len

Size of the buffer for the key ID.

Declaration
size_t out_key_id_len;

Returns

A return code indicating success or failure.

Return Type
OdinReturnCode