Exports
Your Goodfit API key, sent as the bare header value
The id returned by POST /exports
Get an export
Bad request
Unauthorized
Forbidden
No export with this id exists for your account
Too many requests
Internal server error
GET /dataset/exports/{exportId} HTTP/1.1
Host: api.goodfit.io
Authorization: YOUR_API_KEY
Accept: */*
{
"export": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"status": "WAITING",
"type": "text",
"exportName": "text",
"requestedByUserEmail": "text",
"exportConfig": {
"filters": {
"id": "root",
"combinator": "and",
"rules": [
{
"id": "r1",
"field": "__match_sourcing_criteria",
"operator": "booleanTrue"
}
]
},
"columns": [
"text"
]
},
"parts": [
{
"filename": "text"
}
],
"completedAt": "text",
"createdAt": "text",
"updatedAt": "text",
"isExpired": true
}
}Each URL is valid for 5 minutes. Call again for a fresh set.
Your Goodfit API key, sent as the bare header value
The id returned by POST /exports
Get download URLs for an export
Bad request
Unauthorized
Forbidden
No export with this id exists for your account
Too many requests
Internal server error
POST /dataset/exports/{exportId}/download HTTP/1.1
Host: api.goodfit.io
Authorization: YOUR_API_KEY
Accept: */*
{
"export": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"status": "WAITING",
"type": "text",
"exportName": "text",
"requestedByUserEmail": "text",
"exportConfig": {
"filters": {
"id": "root",
"combinator": "and",
"rules": [
{
"id": "r1",
"field": "__match_sourcing_criteria",
"operator": "booleanTrue"
}
]
},
"columns": [
"text"
]
},
"parts": [
{
"filename": "text"
}
],
"completedAt": "text",
"createdAt": "text",
"updatedAt": "text",
"isExpired": true
},
"partDownloads": [
{
"filename": "text",
"downloadUrl": "https://example.com"
}
]
}The 25 most recent exports, newest first. Exports older than 30 days are omitted.
Your Goodfit API key, sent as the bare header value
List recent exports
Unauthorized
Forbidden
Too many requests
Internal server error
GET /dataset/exports HTTP/1.1
Host: api.goodfit.io
Authorization: YOUR_API_KEY
Accept: */*
{
"exports": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"status": "WAITING",
"type": "text",
"exportName": "text",
"requestedByUserEmail": "text",
"exportConfig": {
"filters": {
"id": "root",
"combinator": "and",
"rules": [
{
"id": "r1",
"field": "__match_sourcing_criteria",
"operator": "booleanTrue"
}
]
},
"columns": [
"text"
]
},
"parts": [
{
"filename": "text"
}
],
"completedAt": "text",
"createdAt": "text",
"updatedAt": "text",
"isExpired": true
}
]
}Exports run asynchronously. Poll GET /exports/{exportId} until the status is COMPLETE.
Your Goodfit API key, sent as the bare header value
Shown in the Goodfit web app against this export
Start an export
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$Exports older than 30 days have had their files deleted
Bad request
Unauthorized
Forbidden
Too many requests
Internal server error
POST /dataset/exports HTTP/1.1
Host: api.goodfit.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 213
{
"requestedByUserEmail": "text",
"exportConfig": {
"filters": {
"id": "root",
"combinator": "and",
"rules": [
{
"id": "r1",
"field": "__match_sourcing_criteria",
"operator": "booleanTrue"
}
]
},
"columns": [
"text"
]
},
"exportName": "text"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"status": "WAITING",
"type": "text",
"exportName": "text",
"requestedByUserEmail": "text",
"exportConfig": {
"filters": {
"id": "root",
"combinator": "and",
"rules": [
{
"id": "r1",
"field": "__match_sourcing_criteria",
"operator": "booleanTrue"
}
]
},
"columns": [
"text"
]
},
"parts": [
{
"filename": "text"
}
],
"completedAt": "text",
"createdAt": "text",
"updatedAt": "text",
"isExpired": true
}Last updated