API users of OpenClinica will need an authentication token in order to access the API endpoints. Authentication token can be obtained by calling the following endpoint.


POST {serverName}/user-service/api/oauth/token

where {serverName} is your study build URL. E.g. https://xyz.build.openclinica.io

Request Body:

  "username": ""
  "password": ""

Response Body:

    Response body will contain the authentication token.

API users should then supply this authentication token (as shown below) in the Authorization header as a bearer token when accessing other endpoints.


Authorization: Bearer <token>