Issue an RS256 JWT (service-to-service or partner M2M)
AWS_IAM-protected. Dispatches on the body: omit grant_type for a service-to-service JWT (aud=pouch-services, 15-min TTL); set grant_type=client_credentials with client_id/client_secret for a partner M2M JWT (aud=partners-api, 60-min TTL). Accepts either application/json or application/x-www-form-urlencoded request bodies — RFC 6749 §2.3.1 specifies form-encoded for the client_credentials grant, and bff-partners uses that content type when proxying partner requests.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
OAuth 2.0 grant type. Omit for the legacy service-to-service flow.
WorkOS Connect M2M Application client id (required when grant_type=client_credentials).
WorkOS Connect M2M Application client secret (required when grant_type=client_credentials).
object
OAuth 2.0 grant type. Omit for the legacy service-to-service flow.
WorkOS Connect M2M Application client id (required when grant_type=client_credentials).
WorkOS Connect M2M Application client secret (required when grant_type=client_credentials).
Responses
Section titled “ Responses ”RS256 JWT response (service-token or partner M2M, depending on the request body).
object
Short-lived RS256 JWT for service-to-service calls
Token lifetime in seconds
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