Skip to main content
If you are organizing essential services or emergency response to COVID-19, activate your free account

Exports "Create/Run" endpoint won't work

I can't seem to get the Exports Create/Run endpoint working through either the API explorer or actual calls from code. I am adding the following json to the request body:

{
    "export": {
        "context": "people"
    }
}

and adding the list_id to the query string but all I get in response is HTTP 406 (Not acceptable). Am I doing something wrong?

Additionally, the API explorer doesn't allow you to provide a value of the list_id parameter for this endpoint.

Official response from

Hi Kevin,

Thank you for letting us know about this - there's was an issue with the API Explorer that has now been resolved.

The url for the request for an export should be POST https://slug.nationbuilder.com/api/v1/lists/:list_id/exports with the request body as you had specified in JSON.

Ex: 

curl -X POST -H "Content-type: application/json" 'https://<slug>.nationbuilder.com/api/v1/lists/<list_id>/exports?access_token=<access_token>' --data '{"export":{"context":"people"}}'


Best,

Alex

Share this post

Showing 3 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.