Weryon RO

Documentation - API Examples

Weryon Mapping Engine API Examples

Full examples for all major endpoints: entities, JSON-LD, scores, search, feeds and webhooks.

01

GET Entity by ID

GET /wp-json/wme/v1/entities/{id}

{
  "success": true,
  "data": {
    "id": 123,
    "name": "Clinica Sante",
    "industry": "Medical",
    "attributes": {"city": "Ploiesti", "services": ["Medical tests", "Laboratory"]}
  }
}
02

GET JSON-LD for Entity

GET /wp-json/wme/v1/entities/{id}/jsonld

{
  "@context": "https://schema.org",
  "@type": "MedicalClinic",
  "name": "Clinica Sante"
}
03

GET AI Scores

GET /wp-json/wme/v1/entities/{id}/scores

{
  "success": true,
  "data": {"industry_score": 0.98, "location_score": 0.92, "service_score": 0.87}
}
04

Search Entities

GET /wp-json/wme/v1/search?query=medical+tests

{
  "success": true,
  "data": [{"id": 123, "name": "Clinica Sante"}]
}
05

Generate Feed

POST /wp-json/wme/v1/feeds/generate

{
  "format": "jsonld",
  "tenant_id": 1
}
06

Webhook Event Example

entity.updated

{
  "event": "entity.updated",
  "timestamp": 1717760000,
  "entity_id": 123,
  "signature": "hmac_sha256_signature_here"
}
07

Error Responses

Invalid API Key / Entity not found

{
  "success": false,
  "error": "Invalid API Key",
  "code": 401
}

Need advanced examples, batch import, custom feeds or complex webhooks?

Contact the Weryon team.