Skip to main content
POST
/
token
csharp
using Prove.Proveapi;
using Prove.Proveapi.Models.Components;

var sdk = new ProveAPI();

V3TokenRequest req = new V3TokenRequest() {
    ClientId = "customer_id",
    ClientSecret = "secret",
    GrantType = "client_credentials",
};

var res = await sdk.V3.V3TokenRequestAsync(req);

// handle response
{
  "access_token": "eyJ...",
  "refresh_token": "eyJ...",
  "refresh_expires_in": 3600,
  "token_type": "Bearer",
  "expires_in": 3600
}

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..."