ApiKey
Describes a key a system uses to call an Occtoo API, limited to the scopes it was given. The secret is returned only by createTenantApiKey, createApiKey and rotateApiKey.
ApiKeyFields
Ids of the APIs the key may call.
Name of the user who created the key.
When the key was created, as an ISO 8601 date-time string.
Global id of the key: base64 of ApiKey:<raw id>. apiKey takes it. rotateApiKey and deleteApiKey take the raw id (ApiKeyWithSecret.id, e.g. api_key_0195ac80a14e8d71f42b98e75d3c61ad).
First characters of the key, to tell keys apart without the secret.
Last characters of the key, to tell keys apart without the secret.
IP address the key was last verified from. Null if it never has been.
When the key was last verified, as an ISO 8601 date-time string. Null if it never has been.
Name of the key.
Organization code of the tenant the key belongs to.
Scopes the key was given. tenantScopes lists the ones a tenant-level key can get.
State of the key, in lowercase (e.g. active, revoked). apiKeys filters on it with status.
Kind of key, in lowercase: organization for a tenant-level key, user for a key tied to one user. apiKeys filters on it with keyType.
Sign-in id of the user a user key belongs to; not UserV2.id. Null for a tenant-level key.
Number of times the key has been verified.
Was this page helpful?