Private resources are secured with the HTTP Basic Auth mechanism.
/auth
Register customerKey and get authenticated session details.
| Name | In | Default | Constraints | Description | |
|---|---|---|---|---|---|
Authorization |
header | The authentication header containing login and password in the form of HTTP Basic Auth. | |||
x-customer-key |
header |
| Media Type | Data Type | Description |
|---|---|---|
application/json |
AuthSessionDetails | |
application/xml |
AuthSessionDetails |
| Name | Description |
|---|---|
x-auth-token |
The authentication token for accessing private resources. |
<authSessionDetails>
<userId>...</userId>
<accountId>...</accountId>
<sessionId>...</sessionId>
<customerPermanentStorageId>...</customerPermanentStorageId>
</authSessionDetails>
{
"authSessionDetails" : {
"userId" : 12345,
"accountId" : 12345,
"sessionId" : "...",
"customerPermanentStorageId" : "..."
}
}
/auth
Get authenticated session details.
| Name | In | Default | Constraints | Description | |
|---|---|---|---|---|---|
Authorization |
header | The authentication header containing login and password in the form of HTTP Basic Auth. |
| Media Type | Data Type | Description |
|---|---|---|
application/json |
AuthSessionDetails | |
application/xml |
AuthSessionDetails |
| Name | Description |
|---|---|
x-auth-token |
The authentication token for accessing private resources. |
<authSessionDetails>
<userId>...</userId>
<accountId>...</accountId>
<sessionId>...</sessionId>
<customerPermanentStorageId>...</customerPermanentStorageId>
</authSessionDetails>
{
"authSessionDetails" : {
"userId" : 12345,
"accountId" : 12345,
"sessionId" : "...",
"customerPermanentStorageId" : "..."
}
}