Authenticate

PEAK™ Connect Authenticate is used to retrieve an access token for use in subsequent requests. This is an HTTP GET resource that accepts username and password credentials.

Usernames and password will be provided to you by PEAK™ Connect support.

PEAK™ Connect URLs and Content Types

Resource URL

QA: http(s)://qa-connect.ascentgl.com/v1/authenticate.{xml,json}?username=<username>&password=<password>

Production: http(s)://connect.ascentgl.com/v1/authenticate.{xml,json}?username=<username>&password=<password>

Request/Response Examples

JSON

JSON Response

{ “accessToken”:”str1234″, “expiresIn”:”86400″, “issued”:”2012-12-13T12:12:12″, “expires”:”2012-12-14T12:12:12″, }

XML

XML Response

<?xml version=”1.0″ encoding=”utf-8″?> <AuthenticationResponse xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns=”AuthenticationResponse”> <accessToken>str1234</accessToken> <expiresIn>86400</expiresIn> <issued>2012-12-13T12:12:12</issued> <expires>2012-12-14T12:12:12</expires> </AuthenticationResponse>

Authenticate Response Properties

Property NameData TypeDefinition
accessTokenStringUser access token to be used in subsequent calls to the PEAK Connect API
issuedStringTimestamp when the accessToken was first issued, formatted as yyyyMMddThh:mm:ss
expiresStringTimestamp when the accessToken will expire, formatted as yyyyMMddThh:mm:ss
expiresInLong IntegerNumber of seconds for which the accessToken is valid, starting from the issued timestamp
Menu