Current principal

GET https://emails.routeon.io/api/v1/me

Responses

200 Current principal
401 Missing/invalid credentials. For API-key/session-guarded endpoints, meta.details.code is one of: missing_authorization_header (no/malformed Authorization header), jwt_invalid (expired or otherwise invalid JWT), api_key_unknown (unknown prefix, inactive/revoked key, or bad hash); the login, refresh and logout operations return 401 without details.

Example response · 200

{
    "status": "success",
    "http_code": 0,
    "payload": {
        "user_id": "00000000-0000-0000-0000-000000000000",
        "tenant_id": "00000000-0000-0000-0000-000000000000",
        "role": "string",
        "scopes": [
            "string"
        ],
        "auth_type": "jwt",
        "email": "user@example.com",
        "allowed_providers": [
            "ses"
        ]
    },
    "meta": []
}

Example response · 401

{
    "status": "error",
    "http_code": 0,
    "payload": [],
    "meta": {
        "reason": "VALIDATION_ERROR",
        "validation_error": [
            {
                "field": "string",
                "message": "string"
            }
        ],
        "details": []
    }
}