Docs / User agent
Parse the calling User-Agent
Parses the User-Agent header of the request.
GET
/v1/user-agentcurl "https://liveapi.io/v1/user-agent" \
-H "Authorization: Bearer $LIVEAPI_TOKEN"Request
Send Authorization: Bearer YOUR_TOKEN. Libraries do not wrap this call: from a server it would parse the library's own User-Agent. Use POST /v1/user-agent with the string your server received.
Response
A 200 response uses one call. Returns the browser, device, operating system, and whether the client looks like a bot.
Errors
A failed request returns { "error": { "code", "message" } } and does not use a call.
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | This request has no User-Agent header. |
| 401 | unauthorized | The bearer token is missing or not recognized. |