Getting Started
Quickstart
Build the search → availability → quote → retrieval flow with synthetic examples.
Before you start
These examples illustrate an authorised integration. They are not executable production acceptance instructions: commercial delivery remains disabled. Use credentials only when supplied for an approved environment. Keep keys on your server, outside source code and browser bundles.
1. Authenticate
Send X-API-Key to GET /v2/me. A production platform arrangement and a data wallet are separate. A successful account enquiry is not permission to retrieve any product.
2. Find the company
Search with query=المتحدة للتأمين and countryCode=SY. Retain the returned canonical reference rather than matching on display names. THQ-SY-90000001 is a synthetic example reference, not a verified company.
3. Check availability
Use GET /v2/company/{id}/availability. The response lists only authorised, enabled and materially available data points. A price is expressed in integer credit cents. Complete and partial describe the evidence delivered, not proof that every corporate event is known.
4. Quote, then retrieve
Submit the same product selection to POST /v2/company/quote and POST /v2/company. Set maxBudget explicitly. Use an organisation-unique Idempotency-Key, and retain it for retries of exactly the same content. The request example below selects capital and shareholders; values are illustrative and may be rejected while access is disabled.
5. Reconcile the outcome
Read the returned dataPoints outcomes and billing, not just the HTTP status. One credit equals £1 and 100 credit cents. Platform fees are separate. Only qualifying fulfilled products are charged; unavailable products cost zero. A retry with the same identity must not create another charge.
Synthetic company request
{
"id": "THQ-SY-90000001",
"countryCode": "SY",
"dataPoints": [
"capital",
"shareholders"
],
"maxBudget": 900
}Related API operations
curl --request GET 'https://api.thiqadata.com/v2/me' \
--header 'X-API-Key: YOUR_API_KEY'curl --request GET 'https://api.thiqadata.com/v2/search?query=%D8%A7%D9%84%D9%85%D8%AA%D8%AD%D8%AF%D8%A9%20%D9%84%D9%84%D8%AA%D8%A3%D9%85%D9%8A%D9%86&countryCode=SY' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'Idempotency-Key: synthetic-request-001'