Skip to main content

Authenticate a user



Use this endpoint to get JWT tokens to authenticate a user with the Nabla API. These tokens only gives access to resources for the specified user. This endpoint should typically be called by your backend on behalf of an authenticated user, and the resulting JWT tokens should be forwarded to the user's frontend securely.


Path Parameters

    user_id uuidrequired

    The unique identifier of the user.



    access_token jwt_tokenrequired

    A (typically) short-lived JWT token used to access authenticated resources, e.g the Nabla Patient API.

    refresh_token jwt_tokenrequired

    A (typically) long-lived JWT token allowing you to "refresh" your access to resources (i.e. extend your session, returning a fresh access token and a new refresh token with a later expiration).