Export a table artifact as CSV or Excel
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/artifacts/{slug}/export/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/artifacts/{slug}/export/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/artifacts/{slug}/export/ \
--header 'Authorization: Bearer <token>'"<string>"{
"error": "Authentication credentials were not provided."
}{
"error": "You do not have permission to perform this action."
}{
"error": "Not found."
}Artifacts
Export a table artifact as CSV or Excel
Downloads the artifact’s current head content. Only supported for table
technical_type artifacts; any other type returns 400.
GET
/
projects
/
{project_id}
/
artifacts
/
{slug}
/
export
/
Export a table artifact as CSV or Excel
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/artifacts/{slug}/export/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/artifacts/{slug}/export/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/artifacts/{slug}/export/ \
--header 'Authorization: Bearer <token>'"<string>"{
"error": "Authentication credentials were not provided."
}{
"error": "You do not have permission to perform this action."
}{
"error": "Not found."
}Authorizations
BearerAuthTokenAuth
Use Authorization: Bearer
Query Parameters
Not "format": that query param is reserved by DRF's content-negotiation (URL_FORMAT_OVERRIDE) and would 404 before this view runs.
Available options:
csv, xlsx Response
File download (text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
The response is of type file.