Authentication
Exchange Credentials for a User API Key
GET /authenticate/apikeyexchange — Trade your Portal.io username and password for a User API Key required for all subsequent HMAC-authenticated requests.
GET
The API key exchange endpoint authenticates your Portal.io credentials and returns a
meta.apiKey value you must include in the X-MSS-API-USERKEY header on all subsequent requests. This is the entry point for every integration: call it once to obtain the key, then use that key to sign all other requests.
For the initial exchange,
X-MSS-API-USERKEY must be an empty string and is excluded from the HMAC canonical message. The canonical message is: [HTTP method][base URL without query params][timestamp] — no content-type (GET request) and no user key. See the signing guide for a worked example.Headers
Accept Header
Available options:
application/json Application Id
A date timestamp of the request
A signature for the request
User API Key
Query Parameters
user email address
Maximum string length:
256user password
Response
Success
AuthenticateResponse
ResponseStatus
Dictionary<String,String>