Solved

API Docs

  • 8 February 2023
  • 2 replies
  • 1220 views

Does pigment.app have an api documentation, regarding the usage of api key .

i am looking for full api doc that will help me to understand the endpoints and using those with cURL requests

icon

Best answer by Jennie 8 February 2023, 17:44

View original

2 replies

Badge

Hi @Raasi 

We have various articles on using the Pigment API available: 

 

I hope this helps! :) 

Userlevel 3
Badge +1

Hey @Raasi

In addition to what @Michael said, I’ve got some example cURL requests here if it helps. Replace anything between the ‘<< >>’ with your own values. 

Import API

curl --request POST 'https://pigment.app/api/importservice/Csv/ApiPush/<<import config id>>' \
--header 'X-Pigment-Api-Key: <<your API key>>' \
--header 'Content-Type: text/csv' \
--data-binary '<<CSV here>>'


Export API
Metrics and Tables

curl --request GET 'https://pigment.app/api/workspace/<<application id>>/view/ExportTableData/<<view id>>' \
--header 'X-Pigment-Api-Key: <<your API key>>'

List Data

curl --request GET 'https://pigment.app/api/workspace/<<application id>>/view/ExportListData/<<view id>>' \
--header 'X-Pigment-Api-Key: <<your API key>>'

 

Reply