Leapwork supports making the API request using the HTTP Request building block. In basic HTTP authentication, a request contains a header field of the form Authorization: Basic <token>, where the token is the base64 encoding of id and password joined by a single colon (:).
An API token is a unique identifier of an application requesting access to your service. Your service would generate an API token for the application to use when requesting your service. You can then match the token they provide to the one you store in order to authenticate.
To send these token values you can use the Headers property specified in the HTTP Request building block. A semicolon is a delimiter for sending a list of request headers.
For example
You can send an HTTP Post request for authentication which requires Content-Type and Authorization as Header fields. These two header fields can be added as text-field in the HTTP request building block with their respective values specified.
In the headers field, we can add these two field values by right-clicking and then selecting the insert token to insert the two fields with a semicolon as a separator in between.
For any clarification, please contact our Priority Support.
Comments
0 comments
Please sign in to leave a comment.