POST v{version}/auth

Details

If the request for an access token is valid, the authorization server needs to generate an access token (and optional refresh token) and return these to the client, typically along with some additional properties about the authorization.

https://api.procurewizard.com/v1.0/auth

Request

URI Parameters

These are parameters passed as part of the URL in the request.

Name Description Type Additional information
version

The API version parameter. The current version is 1.0.

string

None

Response

Response Description

A response object of TokenResponse
Name Description Type Additional information
access_token

The access token string as issued by the authorization server.

string

None

expires_in

If the access token expires, the server should reply with the duration of time the access token is granted for.

integer

None

token_type

The type of token this is, typically just the string “bearer”.

string

None

Response Formats

Example responses of what the data might contain.

    
{
  "access_token": "MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3",
  "token_type": "bearer",
  "expires_in": 3600
}
    
    
<TokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api.Authentication" />
    

Back