x-api-key header. This guide details the entire authentication process.en-workspace header is required only on endpoints that operate in the context of a specific workspace:π‘ Tip: Each endpoint in the documentation clearly indicates whether the en-workspaceheader is required or not.
| Field | Description | Example |
|---|---|---|
| Description | Identifier name | "ERP Integration", "Mobile App" |
| Expiration | Expiry date | 1M, 6M, 1y, never |
| Scopes | Token Permissions | βοΈ read βοΈ write β delete |
| Workspaces | Authorized workspaces | βοΈ Workspace A βοΈ Workspace B |
en.ushcHQHcREdPpe3ZKFCSfAASFE5VawTwTH (example)# For Global API
ENSPACE_API_KEY=en.ushcHQHcREdPpe3ZKFCSfAASFE5VawTwTH
ENSPACE_API_URL=https://api.leif.enspace.io
ENSPACE_WORKSPACE_ID=ws-123
# For Dedicated API (example)
# ENSPACE_API_URL=https://acme.api.enspace.io{
"statusCode": 400,
"error": "Bad Request",
"message": "Missing required header: en-workspace"
}en-workspace in all requests.{
"statusCode": 401,
"error": "Unauthorized",
"message": "Invalid or missing API key"
}{
"statusCode": 403,
"error": "Forbidden",
"message": "Token not authorized for this workspace"
}