Skip to main content

Authentication

All 3PL endpoints are protected by an API key which is generated for your user account. Please reach out to ZQUARED to get your API key. Once you have your key, you can make authenticated calls by passing your API key in the Authorization header of an request you make. You must also pass a X-Requested-With header.

An example structure and call is provided below:

curl -v --header "Authorization: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" https://3pl.zquared.com/api/v1/stores

HEADERS

{
...
"Authorization": "<your api key>",
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/json",
...
}

If your API key is valid, your requested resource will be returned (or any error messages).

If your API key is invalid, the system will return a 401 Unauthorized HTTP status, with no body.