apiId.
When to create separate keyspaces
Use multiple keyspaces when you need independent key prefixes, permissions, or analytics boundaries.
A single keyspace works fine if all your keys share the same configuration and you filter by metadata or tags instead.
Create a keyspace
- Navigate to Keyspaces (APIs) in the sidebar.
- Click New keyspace.
- Enter a name for your keyspace.
api_xxx) for the keyspace. This is the identifier you pass when creating keys and querying analytics, so keep it handy.
Keyspace settings
Each keyspace exposes configuration through its settings page.Identifiers
Each keyspace has two identifiers:Storage and validation
A keyspace is the storage and validation boundary for all of its keys (internally, it’s backed by akey_auth record). When the gateway or the verification endpoint receives a key, it resolves the keyspace by key prefix and validates the key against that keyspace’s configuration.
The keyspace stores:
KeySpace IDs appear in analytics queries as
key_space_id and in gateway configuration when connecting a keyspace to a deployment.