> For the complete documentation index, see [llms.txt](https://api-docs.gatcg.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.gatcg.com/endpoints/api-metadata.md). Agents can also search and read this documentation through its [MCP server](https://api-docs.gatcg.com/~gitbook/mcp).

# API metadata

## GET /

> Get API metadata.

```json
{"openapi":"3.0.3","info":{"title":"Grand Archive API","version":"1.1.0"},"servers":[{"url":"https://api.gatcg.com","description":"Production server (uses live data)"}],"paths":{"/":{"get":{"operationId":"GetAPISpec_get_/","tags":["Metadata"],"summary":"Get API metadata.","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"commit_hash":{"description":"The git commit hash the API is running on.","type":"string"},"db":{"description":"The database the API is pulling data from.","type":"string"},"deploy_hash":{"description":"The deployment hash the API is running on.","type":"string"},"message":{"description":"A brief description of the API.","type":"string"},"request_received":{"description":"The time the request was received by the server.","type":"number"}},"additionalProperties":false,"required":["commit_hash","db","deploy_hash","message","request_received"]}}}}}}}}}
```

## List changelog entries.

> This returns a list of API update changelog entries ordered by descending date.

```json
{"openapi":"3.0.3","info":{"title":"Grand Archive API","version":"1.1.0"},"servers":[{"url":"https://api.gatcg.com","description":"Production server (uses live data)"}],"paths":{"/changelog/list":{"get":{"operationId":"GetChangelogsAPISpec_get_/list","tags":["Metadata"],"summary":"List changelog entries.","description":"This returns a list of API update changelog entries ordered by descending date.","parameters":[{"description":"Number of results to display.","name":"limit","in":"query","required":false,"schema":{"default":50,"minimum":1,"maximum":100,"type":"number"}}],"responses":{"200":{"description":"A list of changelog entries ordered by descending date.","content":{"application/json":{"schema":{"description":"A list of changelog entries ordered by descending date.","type":"array","items":{"type":"object","properties":{"content":{"description":"A HTML description of the update with Index-specific links.","type":"string"},"date":{"description":"When the dataset was created.","type":"string","format":"date-time"},"uuid":{"description":"A 10-character alphanumeric UUID.","type":"string"}},"additionalProperties":false,"required":["content","date","uuid"]}}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://api-docs.gatcg.com/endpoints/api-metadata.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
