curl -X POST http://localhost:3000/auth/login \
-H "Authorization: Bearer $ISOL8_MASTER_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "ci-job-42", "ttlMs": 600000 }'
{
"token": "isol8_9f2e8d7c...",
"expiresAt": "2026-03-01T12:10:00.000Z",
"keyId": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
}
Exchange the master key for a short-lived API token.
curl -X POST http://localhost:3000/auth/login \
-H "Authorization: Bearer $ISOL8_MASTER_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "ci-job-42", "ttlMs": 600000 }'
{
"token": "isol8_9f2e8d7c...",
"expiresAt": "2026-03-01T12:10:00.000Z",
"keyId": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
}
login-<ISO timestamp>."default".auth.defaultTtlMs from server config.isol8_.DELETE /auth/keys/:id to revoke early.curl -X POST http://localhost:3000/auth/login \
-H "Authorization: Bearer $ISOL8_MASTER_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "ci-job-42", "ttlMs": 600000 }'
{
"token": "isol8_9f2e8d7c...",
"expiresAt": "2026-03-01T12:10:00.000Z",
"keyId": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
}
GET /auth/keys and can be revoked with DELETE /auth/keys/:id.Was this page helpful?