Skip to main content
POST
/
token
Request OAuth Token
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://platform.uat.proveapis.com/token"

	payload := strings.NewReader("client_id=customer_id&client_secret=secret&grant_type=client_credentials")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/x-www-form-urlencoded")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
{
  "access_token": "eyJ...",
  "refresh_token": "eyJ...",
  "refresh_expires_in": 3600,
  "token_type": "Bearer",
  "expires_in": 3600
}
Use the following base URLs when integrating:https://platform.uat.proveapis.com - North America Sandbox Environmenthttps://platform.proveapis.com - North America Production Environment

Body

application/x-www-form-urlencoded
client_id
string
required

The client ID retrieved from the Developer Portal.

Example:

"customer_id"

client_secret
string
required

The client secret retrieved from the Developer Portal.

Example:

"secret"

grant_type
string
required

The grant type. This field only accepts client_credentials.

Example:

"client_credentials"

Response

Successful request.

access_token
string
required

The access token used to authenticate API calls.

Example:

"eyJ..."

expires_in
integer
required

The lifetime of the token in seconds.

Example:

3600

token_type
string
required

The type of token.

Example:

"Bearer"

refresh_expires_in
integer

The lifetime of the refresh token in seconds. Not currently supported.

Example:

3600

refresh_token
string

The token used to refresh the expiration time. Not currently supported.

Example:

"eyJ..."

I