POST
/
environments
/
{environmentId}
/
exports
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/exports \
  --header 'Content-Type: application/json' \
  --data '{
  "format": "csv",
  "model": "users",
  "filter": {
    "users": {
      "filterValue": "<string>",
      "filterColumn": "all",
      "chain": "ETH"
    }
  }
}'
{
  "id": "95b11417-f18f-457f-8804-68e361f9164f",
  "format": "csv",
  "model": "users",
  "status": "completed",
  "filter": {
    "users": {
      "filterValue": "<string>",
      "filterColumn": "all",
      "chain": "ETH"
    }
  },
  "createdAt": "2023-11-07T05:31:56Z",
  "startedAt": "2023-11-07T05:31:56Z",
  "completedAt": "2023-11-07T05:31:56Z",
  "downloadUrl": "<string>",
  "error": "<string>"
}

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36

Body

application/json

Request body to create a new export.

format
enum<string>
required
Available options:
csv
model
enum<string>
required
Available options:
users
filter
object

Response

201
application/json
Successfully created export
id
string
required
Required string length: 36
format
enum<string>
required
Available options:
csv
model
enum<string>
required
Available options:
users
status
enum<string>
required
Available options:
completed,
failed,
pending
filter
object
required
createdAt
string
required
startedAt
string | null
completedAt
string | null
downloadUrl
string
error
string

When defined, this is the error message and stack trace received when attempting to process the export.