Grants a permission to the specified customer.
Returns 201 with a Location header pointing to the new permission resource.
If expires_at is provided it must be a valid RFC 3339 / ISO 8601 timestamp.
Bearer authentication using the project Secret Key (prefixed with sk_, or test_sk_ for sandbox). All v4 public endpoints require the Secret Key — see Authentication. Never expose the Secret Key in client-side code.
Customer identifier.
Permission identifier to grant. Must be alphanumeric, hyphens, underscores, or dots. Max 256 characters.
256"premium_access"
Optional expiration timestamp in RFC 3339 / ISO 8601 format. Omit for a non-expiring permission.
"2026-01-01T00:00:00Z"
Permission granted.
Created permission data (shape determined by the analytics service).