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 up to 2 weeks. If you're interested in longer retention, reach out.
linkAttributes
linkdata.attributes.url
stringread onlyThe url that the request was for.
linkdata.attributes.method
stringread onlyThe HTTP method that the request used.
linkdata.attributes.status
stringread onlyThe HTTP status of the response.
linkdata.attributes.userAgent
stringread onlyThe user agent sent with the request.
linkdata.attributes.ip
stringread onlyThe IP address of the request.
linkdata.attributes.requestHeaders
objectread only The headers of the request. This includes only a subset of headers.
linkdata.attributes.requestBody
stringread onlyThe body of the request.
linkdata.attributes.responseHeaders
objectread only The headers of the response. This includes only a subset of headers.
linkdata.attributes.responseBody
stringread onlyThe body of the response.
linkdata.attributes.responseSignature
stringread onlyThe signature of the response.
linkdata.attributes.created
timestamp (iso8601)read onlyWhen the request was made.
linkdata.attributes.updated
timestamp (iso8601)read onlyWhen the request log was last updated.
linkRelationships
linkdata.relationships.account
individualThe account that the request was for.
linkdata.relationships.environment
individualThe environment that the request was for.
linkdata.relationships.requestor
individualWho made the request.
Example object
{ "data": { "id": "51bf85b8-85f1-4665-977d-69adb46915b5", "type": "request-logs", "attributes": { "url": "/v1/accounts//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=\" \", 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=\" \", 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/" }, "data": { "type": "accounts", "id": "" } }, "environment": { "links": { "related": null }, "data": null }, "requestor": { "links": { "related": "/v1/accounts//licenses/1a8845c8-ff5d-4dab-a805-5b58efe0c9d2" }, "data": { "type": "licenses", "id": "1a8845c8-ff5d-4dab-a805-5b58efe0c9d2" } } }, "links": { "self": "/v1/accounts//request-logs/51bf85b8-85f1-4665-977d-69adb46915b5" } }}