> For the complete documentation index, see [llms.txt](https://kalenj.gitbook.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kalenj.gitbook.io/graphql-admin-api-action.md).

# GraphQL Admin API Action

One of the limitations of the native flow actions for admin API calls is that you can't get the response from the API in flow in order to use it in subsequent steps - that's what this solves for.

Here's an example of a flow that can use the response from the GraphQL Admin API call:

<figure><img src="https://1153628397-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4RDgQr1PbXUjzWMoWZus%2Fuploads%2FjzMiLZr7HnyaFIpKMWYG%2FScreenshot%202024-06-23%20at%2010.45.29%E2%80%AFAM.png?alt=media&amp;token=c1543c9a-3815-4b88-be43-d3fbe5bbec88" alt=""><figcaption></figcaption></figure>

The action gives you a field for the query and a field for the input variables. And the response back is stringified JSON so that the specifics of the fields in the payload can be arbitrarily set at run-time:

<figure><img src="https://1153628397-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4RDgQr1PbXUjzWMoWZus%2Fuploads%2Fv7JLdIyB3geb7tCGyvDW%2FScreenshot%202024-06-23%20at%2010.49.28%E2%80%AFAM.png?alt=media&amp;token=875d3f14-4595-4a6a-9030-eb4d2bbbab4f" alt=""><figcaption></figcaption></figure>

And here's what the log output looks like:

<figure><img src="https://1153628397-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4RDgQr1PbXUjzWMoWZus%2Fuploads%2FbYJy7Gl8kmBLNTpXLF0W%2FScreenshot%202024-06-23%20at%2010.45.59%E2%80%AFAM.png?alt=media&amp;token=7286c120-204d-47ac-8e17-d8a55b9043fb" alt=""><figcaption></figcaption></figure>

**Import Flow Template**

{% file src="/files/PzkQBHdE3BE6J1ZUcdRV" %}
