Issue or refresh a Karmo user JWT (public — OAuth user grants only)
Public alias. Accepts grant_type=authorization_code (used internally by /auth/callback) and grant_type=refresh_token. Hard refuses client_credentials and empty-body service-token requests — those live on the AWS_IAM-gated POST /auth/token.
Request Body required
Section titled “Request Body required ”object
OAuth 2.0 grant type. Must be authorization_code or refresh_token.
OAuth client id, must match an entry in the in-code client registry.
Authorization code from /auth/callback. Required when grant_type=authorization_code.
PKCE code verifier. Required when grant_type=authorization_code.
Redirect URI from /auth/authorize. Required when grant_type=authorization_code.
WorkOS refresh token. Required when grant_type=refresh_token.
Responses
Section titled “ Responses ”RS256 user JWT and (rotated) refresh token.
object
Short-lived RS256 JWT carrying the canonical user claim contract.
Token lifetime in seconds (default 900s).
WorkOS refresh token (rotated value when WorkOS rotates).
BAD_REQUEST
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/emailUNAUTHORIZED
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/emailFORBIDDEN
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/emailNOT_FOUND
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/emailCONFLICT
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/emailUNPROCESSABLE_ENTITY
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/emailINTERNAL_SERVER_ERROR
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/email