linkThe request log object
Below you will find the various attributes for the request log resource. Each API request will be tagged with a unique UUID which can be used to lookup a particular request log for debugging purposes.
By default, request logs are kept for a maximum of 30 days.
linkAttributes
linkRelationships
linkdata.relationships.environment
individualent onlyThese relationships are only available for accounts on an Ent tier.The environment that the request was for.
Example object
{ "data": { "id": "51bf85b8-85f1-4665-977d-69adb46915b5", "type": "request-logs", "attributes": { "url": "/v1/accounts/<account>/machines", "method": "POST", "status": "422", "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36", "ip": "192.168.1.1", "requestHeaders": { "Host": "api.keygen.sh", "Accept": "application/json", "Content-Type": "application/json", "Content-Length": "298" }, "requestBody": "{\"data\":{\"type\":\"machine\",\"attributes\":{\"fingerprint\":\"0c:5a:23:ef:05:42:45:70:87:a2:c5:a0:b7:cb:d0:6a\",\"name\":\"Work Surface\",\"platform\":\"Windows 10\",\"metadata\":{\"browser\":\"chrome\",\"version\":\"125.0.0\"}},\"relationships\":{\"license\":{\"data\":{\"type\":\"license\",\"id\":\"1a8845c8-ff5d-4dab-a805-5b58efe0c9d2\"}}}}}", "responseSignature": "keyid=\"<account>\", algorithm=\"ed25519\", signature=\"sgCO/65/JxiNdM68gNp/uUkNYf9UDpP262YSbzprXMNKoqHcgmqgzsOn+KsYrvGXgVMuxMKqEQu7FpNCK86QDQ==\", headers=\"(request-target) host date digest\"", "responseHeaders": { "Date": "Tue, 04 Jun 2024 16:18:36 GMT", "Digest": "sha-256=jexOw5i/zQJbcv8WOVcHkOQ2lnRc1dJH+GoVNaR8G4U=", "Keygen-Date": "Tue, 04 Jun 2024 16:18:36 GMT", "Keygen-Mode": "multiplayer", "Content-Type": "application/json; charset=utf-8", "Keygen-Digest": "sha-256=jexOw5i/zQJbcv8WOVcHkOQ2lnRc1dJH+GoVNaR8G4U=", "Keygen-Edition": "EE", "Keygen-License": "id=\"645993cd-e5f4-40e4-8a43-b35cefd04a8d\", iss=\"2023-03-15 20:03:03 UTC\", exp=\"\"", "Keygen-Version": "1.2", "Keygen-Signature": "keyid=\"<account>\", algorithm=\"ed25519\", signature=\"sgCO/65/JxiNdM68gNp/uUkNYf9UDpP262YSbzprXMNKoqHcgmqgzsOn+KsYrvGXgVMuxMKqEQu7FpNCK86QDQ==\", headers=\"(request-target) host date digest\"" }, "responseBody": "{\"errors\":[{\"title\":\"Unprocessable resource\",\"detail\":\"machine count has exceeded maximum allowed for license (10)\",\"code\":\"MACHINE_LIMIT_EXCEEDED\",\"source\":{\"pointer\":\"/data\"},\"links\":{\"about\":\"https://keygen.sh/docs/api/machines/#machines-object\"}}],\"meta\":{\"id\":\"51bf85b8-85f1-4665-977d-69adb46915b5\"}}", "created": "2024-06-04T16:18:36.789Z", "updated": "2024-06-04T16:18:36.829Z" }, "relationships": { "account": { "links": { "related": "/v1/accounts/<account>" }, "data": { "type": "accounts", "id": "<account>" } }, "environment": { "links": { "related": null }, "data": null }, "requestor": { "links": { "related": "/v1/accounts/<account>/licenses/1a8845c8-ff5d-4dab-a805-5b58efe0c9d2" }, "data": { "type": "licenses", "id": "1a8845c8-ff5d-4dab-a805-5b58efe0c9d2" } } }, "links": { "self": "/v1/accounts/<account>/request-logs/51bf85b8-85f1-4665-977d-69adb46915b5" } }}