Creates a new API key for the authenticated user with specified permissions and optional expiration.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Name for the API key (e.g., "Zapier integration").
1A map of space IDs to permissions. Each space ID is associated with an array of permissions that the API key will have access to in that space.
Optional expiration value (ISO timestamp or UNIX seconds) after which the API key becomes invalid.