Skip to content

Artifacts

The artifacts endpoint allows you to download files from game session containers after they’ve been terminated. This is useful for retrieving logs, save files, or any other data generated during the session.

GET /artifacts
ParameterTypeRequiredDescription
sessionstringYesThe ID of the session to download artifacts from
pathstringYesThe absolute path inside the container to the file or folder you want to download
GET /artifacts?session=c595bc6f-8522-4a62-95cd-8742136643ea&path=/home/gameserver/logs/server.log HTTP/1.1
Host: api.gameye.io
Authorization: Bearer YOUR_TOKEN_HERE

When successful, the response will be a 200 OK with the artifact file in .tar.gz format. The content type will be application/x-tar.

Status CodeDescription
401Unauthorized - Invalid bearer token
404Not Found - Session doesn’t exist or has been removed from the host machine
{
"statusCode": 404,
"code": "RESOURCE_NOT_FOUND",
"message": "Could not find a session with the given session id.",
"details": "It is possible that either the session has never existed at all or the container's lifespan on the machine has expired.",
"identifier": "3bc545b7-4750-47e6-a918-c93debc58663",
"path": "/artifacts",
"timestamp": "2023-04-01T12:00:00Z"
}

🔍 Tip: Always include the identifier when contacting support about errors. This helps us quickly trace the exact issue in our systems.

Here are some key things to know about downloading artifacts:

  1. Session Must Be Stopped - Artifacts are only available after a session has been terminated
  2. Size Limit - Please limit your download size to a maximum of 100MB
  3. Limited Availability - Artifacts are only available until the container is removed from its host machine. This means your logs may not be available indefinitely after termination.
  4. Path Format - Use absolute Unix paths (starting with /) when specifying the path to the artifact
  5. Downloading Folders - You can specify a folder path to download all of its contents
  • Downloading game server logs for debugging purposes
  • Retrieving player statistics or match results
  • Collecting crash dumps for analysis
  • Backing up save files or game state
  • Download important artifacts as soon as possible after stopping a session
  • Use specific paths to download only what you need
  • Consider implementing automatic artifact collection in your workflow
  • Parse and process the downloaded data to extract useful information
GET /artifacts?session=c595bc6f-8522-4a62-95cd-8742136643ea&path=/home/gameserver/logs HTTP/1.1
GET /artifacts?session=c595bc6f-8522-4a62-95cd-8742136643ea&path=/home/gameserver/matches/match_123.json HTTP/1.1
GET /artifacts?session=c595bc6f-8522-4a62-95cd-8742136643ea&path=/home/gameserver/crashdump.log HTTP/1.1