> 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).

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
