Setting the environment

    Sandbox environments are currently in closed beta: if you're interested in joining the program, reach out to us using our Support form

    If you need to make changes to a sandbox environment, you can add an X-Environment header to specify it. With no X-Environment header, the primary environment will be used:

    curl \
    -H 'Authorization: Bearer YOUR-API-TOKEN' \
    -H 'Accept: application/json' \
    -H 'X-Environment: my-sandbox-environment' \
    https://site-api.datocms.com/site