Export users
Exporting users (bulk)
Overview
- Call name: export
- Endpoint URL: https://services-\[API_ENVIRONMENT\].spaaza.com/segments/export/users
- Request methods: HTTP POST
- Content-Type: application/json
- Auth required: yes
You can use this API endpoint to search for users in Spaaza. The endpoint is accessed with a POST of simple JSON (see below for an example).
The API_ENVIRONMENT value for the endpoint URL varies according to whether the request is being made to Spaaza's production or staging API:
| Environment | API_ENVIRONMENT value |
|---|---|
| Production | prod |
| Staging | test01 |
Headers
The following headers are required:
| Header | Description |
|---|---|
| X-Spaaza-Session-User-Id | Spaaza ID of the user obtained from the login endpoint |
| X-Spaaza-Session-Key | Session key obtained from the login endpoint |
| X-Spaaza-Session-Chain-Id | the ID of the Spaaza chain or retailer |
The following authentication methods are permitted:
| Method | Description |
|---|---|
| Admin | A session generated by administrative user login. |