← DataPIAPI GUIDE

DataPI API

Use one DataPI endpoint and stable operation identifiers to make requests. DataPI selects the underlying source; source details are not part of your API contract.

1. Create an API token

Sign in, open your dashboard, create a workspace token, and copy the secret once. Keep it in your backend secret store.

Open dashboard
2. Authenticate

Send the token as an HTTP bearer credential to the DataPI API.

Authorization: Bearer $DATAPI_API_TOKEN
3. Discover operations

List DataPI operations and read their input and output schemas before making a request.

curl https://api.datapi.ir/v1/operations \
  -H "Authorization: Bearer $DATAPI_API_TOKEN"
4. Send a request

Each operation uses the same request endpoint. Follow its published schema when shaping `input`.

curl https://api.datapi.ir/v1/requests \
  -H "Authorization: Bearer $DATAPI_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"operation":"social.instagram.profile.read","input":{"username":"sample_creator"},"mode":"sync"}'

Results are returned only for available, configured operations. Read quota headers to monitor the monthly free API-call allowance.