Pull reputation intelligence, alerts, sentiment trends, and sanctions screening into your BI, CRM, and AI agents. Authenticate with a Bearer API key, get JSON back.
All requests must include an Authorization header with a Bearer token prefixed by harch_:
Authorization: Bearer harch_<your-key>API keys are scoped to the company of the user who created them. A key created by a user of Attijariwafa Bank can only read Attijariwafa Bank data — never another company's. Keys are hashed at rest (SHA-256); the plaintext is shown only once at creation time.
All endpoints are relative to https://atelier.harchcorp.com. Example:
GET https://atelier.harchcorp.com/api/v1/alertsRate-limited responses return HTTP 429 with a Retry-After header. The X-Harch-Quota-Remaining header is sent on every successful response.
/api/v1/alertsReturns crisis alerts for the API key's company — negative-sentiment articles from the last 7 days plus high/critical risk assessments. Sorted by detectedAt descending.
curl -H "Authorization: Bearer harch_your_key_here" \
"https://atelier.harchcorp.com/api/v1/alerts"/api/v1/reputationReturns the latest reputation score + pillar breakdown (sentiment, AI visibility, volume, authority, innovation, performance, purpose, share of voice) plus a 30-day history.
curl -H "Authorization: Bearer harch_your_key_here" \
"https://atelier.harchcorp.com/api/v1/reputation"/api/v1/sentimentDaily sentiment time-series for the API key's company. Each day reports the average sentiment score, article count, and positive/neutral/negative breakdown.
curl -H "Authorization: Bearer harch_your_key_here" \
"https://atelier.harchcorp.com/api/v1/sentiment"/api/v1/screenScreens a name (individual, entity, or vessel) against the consolidated OFAC + EU + UN sanctions lists. Uses fuzzy matching with a configurable similarity threshold (default 0.86). Returns matches ranked by similarity.
curl -H "Authorization: Bearer harch_your_key_here" \
"https://atelier.harchcorp.com/api/v1/screen?name=Acme+Corp"Run REAL requests against the public API. No simulated responses: what you see is the server's live answer, with its status and measured latency.
/api/search?q=ocpTip: try q=ocp, q=attijariwafa, q=phosphate or q=banking.
8 resources served alongside v1, behind the same Bearer key and the same per-company scope. v1 stays served unchanged: migrate resource by resource, with no breaking change.
Every v2 response carries 3 blocks: data holds the resource; meta holds the schema version (2.0.0), the generation timestamp, the stable-id scheme, the confidence metadata (definition of every score-bearing field) and the sample context; links holds the request URL and the documentation.
{
"data": {
"company": { "id": "attijariwafa-bank", "name": "Attijariwafa Bank" },
"overall": {
"value": 84.2,
"trend": "up",
"definition": "Composite reputation score stored by the analytics pipeline at the timestamp in computed_at (pillar breakdown: sentiment, AI visibility, volume, authority, innovation, performance, purpose, share of voice).",
"unit": "0-100",
"computed_at": "2026-07-31T06:00:00.000Z",
"sample": { "size": 842 },
"evidence": {
"type": "aggregate",
"underlying": "articles",
"company": "attijariwafa-bank"
}
}
},
"meta": {
"schema_version": "2.0.0",
"resource": "reputation",
"generated_at": "2026-07-31T09:00:00.000Z",
"id_scheme": {
"company": "slug — the unique company slug stored in the database",
"reputation_point": "rep_<sha256(companyId|calculatedAt)[0..16]>"
},
"confidence": {
"method": "Reputation scores are composite values computed by the analytics pipeline and stored as ReputationScore rows…",
"fields": {
"overall": { "definition": "Composite reputation score…", "unit": "0-100" },
"pillars.sentiment": { "definition": "Sentiment pillar…", "unit": "-1..1" }
}
},
"sample_context": {
"company": "attijariwafa-bank",
"history_points": 30,
"history_window": "last 30 days"
},
"source_registry_ref": "ops/source_registry.csv"
},
"links": {
"self": "https://atelier.harchcorp.com/api/v2/reputation",
"docs": "https://atelier.harchcorp.com/atelier/api-docs"
}
}Every score-bearing field is an object with 6 keys: value (the measurement), definition (what the score measures), unit (the scale), computed_at (when it was computed), sample (size and window of the sample) and evidence (pointer to the underlying article, aggregation window or list entry, where one exists).
// Every score-bearing field is an object — never a raw scalar:
"sentimentScore": {
"value": -0.72,
"definition": "Per-article sentiment score from the trilingual lexical analyzer (FR/AR/EN lexicons, negation and intensity rules, applied to title + excerpt at scrape time). -1 = very negative coverage, +1 = very positive.",
"unit": "-1..1",
"computed_at": "2026-07-31T08:20:00.000Z",
"sample": { "size": 1 },
"evidence": {
"type": "article",
"id": "art_9f2c…",
"url": "https://lematin.ma/…",
"source": "Le Matin"
}
}Companies are identified by their unique slug, articles by the SHA-256 of their normalised URL (the dedup key), and derived resources — alerts, reputation history points, AI visibility probes — by deterministic identifiers derived from their natural keys. The same document always returns the same identifier; no internal database identifier is exposed.
4 resources at parity with v1 (same parameters, same data) and 4 new ones: the self-describing catalog, the monitored companies (list and detail) and the published HARCH 100 leaderboard.
The API uses standard HTTP status codes. Error responses use a consistent JSON shape:
{
"error": "Unauthorized",
"message": "Missing or invalid API key. Pass it as Authorization: Bearer harch_<your-key>."
}200Success.400Bad request — missing or invalid query parameter.401Unauthorized — missing or invalid API key.403Forbidden — your key works but you don't have access to this resource.404Not found — the resource or company does not exist.429Too many requests — you hit the rate limit. Retry after the Retry-After header.503Service unavailable — sanctions lists are cold-starting. Retry in 30s.500Server error. If it persists, contact support with the request ID from X-Harch-Request-Id.Register outbound webhooks to receive POST callbacks when critical alerts fire, reports become ready, or sanctions match. Manage your webhooks in the Enterprise Admin → Webhooks tab.
Every delivery is signed (if you set a secret) with X-Harch-Signature: hex(HMAC-SHA256(secret, body)). Failed deliveries retry up to 3 times with exponential backoff (2s → 4s → 8s).
Your receiver should:
alert.criticalFires when a critical-severity article or risk assessment is detected for your company.
{
"event": "alert.critical",
"deliveredAt": "2026-07-31T09:00:00.000Z",
"data": {
"id": "clk2xyz...",
"title": "OCP Group under scrutiny over ...",
"severity": "critical",
"source": "Le Matin",
"url": "https://lematin.ma/...",
"detectedAt": "2026-07-31T08:15:00.000Z",
"sentimentScore": -0.72,
"company": { "id": "clk1abc...", "name": "OCP Group", "slug": "ocp-group" }
}
}alert.highSame as alert.critical but for high-severity alerts.
{
"event": "alert.high",
"deliveredAt": "2026-07-31T09:05:00.000Z",
"data": { /* same shape as alert.critical */ }
}report.readyFires when a new insight report PDF is generated for your company.
{
"event": "report.ready",
"deliveredAt": "2026-07-31T07:00:00.000Z",
"data": {
"reportId": "clk3rep...",
"type": "risk",
"period": "2026-07",
"pdfUrl": "https://atelier.harchcorp.com/api/pdf/report/clk3rep.pdf"
}
}reputation.dropFires when the overall reputation score drops by 5+ points week-over-week.
{
"event": "reputation.drop",
"deliveredAt": "2026-07-31T06:00:00.000Z",
"data": {
"previousScore": 84.2,
"currentScore": 78.1,
"delta": -6.1,
"company": { "id": "clk1abc...", "name": "Attijariwafa Bank", "slug": "attijariwafa-bank" }
}
}screening.matchFires when a sanctions screening returns a match (similarity >= 0.86).
{
"event": "screening.match",
"deliveredAt": "2026-07-31T09:10:00.000Z",
"data": {
"query": "Acme Corp",
"matches": [
{ "list": "OFAC", "name": "ACME CORPORATION", "similarity": 0.92 }
],
"clean": false
}
}No official SDK yet — the REST API is stable and simple enough to call with fetch or requests. Join the waitlist for an official TypeScript SDK at api@harchcorp.com.