Authorization header.
Header format
Getting a token
Option 1: Yertle CLI (recommended)
The easiest way is to log in with the Yertle CLI:~/.yertle/config.json:
Option 2: Direct Cognito authentication
If you can’t use the CLI, you can authenticate directly with Cognito using the AWS SDK or any Cognito-compatible client. The user pool details are exposed by Yertle’s frontend at build time and can be found in the public auth flow. The Yertle CLI source (model-context/yertle-cli) is a reference implementation you can study.Token lifetime
- Access tokens expire after one hour
- Refresh tokens are valid for 30 days
- The CLI automatically refreshes access tokens using the stored refresh token; SDKs and custom clients should do the same
Errors
| Status | Meaning |
|---|---|
| 401 Unauthorized | Token missing, invalid, or expired |
| 403 Forbidden | Token valid but you lack permission for this resource |
yertle auth login) and retry.
Permissions and roles
Authentication identifies who you are. Authorization is enforced per organization based on your role:| Role | Read nodes | Edit nodes | Manage members | Manage settings |
|---|---|---|---|---|
| viewer | ✓ | |||
| editor | ✓ | ✓ | ||
| owner | ✓ | ✓ | ✓ | ✓ |