The Willow API provides authentication endpoints you will use to get an access token using the appropriate OAuth 2.0 Grant flow for your application. The following section provides details for how to get an access token.
The following base URLs should be used depending on the environment you are seeking to authenticate with:
https://<organization>.app.willowinc.com/api/v3where you replace <organization> with your Willow-provided organization name.
Developers will soon be able to leverage a Willow platform sandbox environment to authenticate and make API calls to test their integration.
POST /oauth2/token
Used to acquire a new access token. This endpoint represents the token endpoint described in OAuth 2.0 RFC - Section 3.2. The parameters described below are placed in the body of the request.
{
"client_id": "<YOUR_CLIENT_ID>",
"client_secret": "<YOUR_CLIENT_SECRET>",
"grant_type": "client_credentials"
}The response will include your access token and expiration deetails used to make API calls to the other endpoints.
{
"token_type": "Bearer",
"expires_in": 3599,
"ext_expires_in": 3599,
"access_token": "<YOUR_ACCESS_TOKEN>"
}