Ping
Check that the Ingest API is reachable and your token is still valid.
A minimal endpoint for confirming two things at once: the service is up, and the token you're holding still works.
POST https://ingest.ms.yarmill.com/api/pingRequest
Ping takes no payload, but it is authenticated — send your AppToken as on any other endpoint.
Because it's a POST with no body, send an explicit zero content length. Without it the request is rejected at the web-server level with 411 Length Required, before it reaches the API.
curl -X POST https://ingest.ms.yarmill.com/api/ping \
-H "Authorization: AppToken application_token_for_yarmill_access" \
-H "Content-Length: 0"Responses
| Code | Meaning |
|---|---|
200 OK | The service is reachable and your token is valid. |
401 Unauthorized | The token is missing or invalid. The body is the plain text Invalid token. |
Ping is a good monitoring check precisely because it validates the token as well as the connection. An integration that ships data once a day otherwise discovers a revoked token a day late — pinging on a schedule turns that into an alert you get immediately.
Related
- Authentication — what to do when a token stops working.
- Send data reliably — retries and failure handling.