HydraCore
API by router

Public

Track Analytics

POST
/v1/public/analytics/track

Request Body

application/json
  1. body
device_type?|null
page_path*Page Path
Lengthlength <= 2048
referrer?|null
screen_width?|null
session_id?|null
site_id*Site Id
Formatuuid

Response Body

Successful Response

Example Request
curl -X POST 'https://example.com/v1/public/analytics/track' \  -H 'Content-Type: application/json' \  -d '{  "page_path": "string",  "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811"}'
Example Response
Empty

Submit Form

POST
/v1/public/forms/submit

Request Body

application/json
  1. body
email?|null
form_data*
Propertiesproperties <= 50
page_slug?string|null
site_id*Site Id
Formatuuid

Response Body

Successful Response

application/json
  1. response
status?Status
Default"received"
submission_id*Submission Id
Formatuuid
Example Request
curl -X POST 'https://example.com/v1/public/forms/submit' \  -H 'Content-Type: application/json' \  -d '{  "form_data": {},  "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811"}'
Example Response
{  "status": "received",  "submission_id": "945dfedc-ad7f-4af7-b20c-06082ffa3cb3"}

Widget Chat

POST
/v1/public/widget/{instance_id}/chat

Path Parameters

instance_id*Instance Id
Formatuuid

Request Body

application/json
  1. body
conversation_id?string|null
message*Message
Lengthlength <= 8000

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X POST 'https://example.com/v1/public/widget/497f6eca-6276-4993-bfeb-53cbbbba6f08/chat' \  -H 'Content-Type: application/json' \  -d '{  "message": "string"}'
Example Response
null