Exchanges authentication credentials for access tokens.

OAuth 2.0 allows for the secure retrieval of resources while protecting user credentials. Viafoura provides an authentication service which is OAuth 2.0 compliant.

To use OAuth 2.0 authentication with Viafoura, the following must occur:

  1. Obtain a temporary access token by requesting authorization with our OAuth 2.0 compliant server.
  2. Request a protected resource using the aforementioned access token.
  3. The resource server will verify the access token before providing the resource.

The token produced is encoded as a JSON Web Token and it is valid for 5 minutes

If the access token has expired, an error will return when requesting the protected resource, and a new access token must be requested.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Form Data
string
required

Type of access to be granted in the token. It must always be client_credentials.

uuid
required

The UUID of the site for which the access token should be generated.

Response

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json