Menu

Expand
Rate this page:

Contacts

Get All Existing Exports

GET /v3/marketing/contacts/exports

Base url: https://api.sendgrid.com

Use this endpoint to retrieve details of all current exported jobs.

It will return an array of objects, each of which records an export job in flight or recently completed.

Each object's export_type field will tell you which kind of export it is and its status field will indicate what stage of processing it has reached. Exports which are ready will be accompanied by a urls field which lists the URLs of the export's downloadable files — there will be more than one if you specified a maximum file size in your initial export request.

Use this endpoint if you have exports in flight but do not know their IDs, which are required for the "Export Contacts Status" endpoint.

Authentication

  • API Key

Headers

Authorization
string
default: Bearer <<YOUR_API_KEY_HERE>>
required

Responses

object
result
array[object]
id
string

Export jobs ID.

status
string

Allowed values: pending, ready, or failure.

created_at
string

This ISO8601 timestamp when the export was created.

completed_at
string

This ISO8601 timestamp when the export was completed.

expires_at
string

This ISO8601 timestamp when the export expires.

urls
array[string]

One or more download URLs for the contact file(s) if the status is ready.

user_id
string

User ID.

export_type
string

Allowed types: contacts_export, list_export, or segment_export.

segments
array[object]
ID
string
Name
string
lists
array[object]
ID
string
Name
string
_metadata
object
prev
string
self
string
next
string
_metadata
object
prev
string
self
string

Link to this page.

next
string

Link to next page.

object
errors
array[object]
message
string
required
string
error_id
string
object
errors
array[object]
message
string

the error message

required
field
string or null

the field that generated the error

help
object

helper text or docs for troubleshooting

id
string
{
  "errors": [
    {
      "field": "field_name",
      "message": "error message"
    }
  ]
}
object
errors
array[object]
message
string

the error message

required
field
string or null

the field that generated the error

help
object

helper text or docs for troubleshooting

id
string
{
  "errors": [
    {
      "field": "field_name",
      "message": "error message"
    }
  ]
}
object
errors
array[object]
message
string

the error message

required
field
string or null

the field that generated the error

help
object

helper text or docs for troubleshooting

id
string
{
  "errors": [
    {
      "field": "field_name",
      "message": "error message"
    }
  ]
}
object
errors
array[object]
message
string
Loading Code Sample...
        
        

        Get All Existing Exports

        Rate this page:

        Need some help?

        We all do sometimes. Get help now from the Twilio SendGrid Support Team.

        Running into a coding hurdle? Lean on the wisdom of the crowd by browsing the SendGrid tag on Stack Overflow or visiting Twilio's Stack Overflow Collective.

        Loading Code Sample...
              
              
              

              Thank you for your feedback!

              Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

              Sending your feedback...
              🎉 Thank you for your feedback!
              Something went wrong. Please try again.

              Thanks for your feedback!

              thanks-feedback-gif