> ## Documentation Index
> Fetch the complete documentation index at: https://docs.legnext.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Postman

> Fork the Legnext collection, configure one API key, and test the asynchronous task flow.

## Set up

1. [Open the Legnext Postman collection](https://www.postman.com/legnext-ai/workspace/legnext-ai-s-workspace/collection/49973316-23452527-b0dc-420a-b21c-cba1d8d5d87a?action=share\&source=copy-link\&creator=49973316).
2. Fork it into your workspace.
3. In **Collection → Variables**, set `x-api-key` to your Legnext API key.
4. Send an image-generation request, then use its `job_id` with the task
   endpoint until it reaches a terminal state.

The collection preconfigures its base URLs; `job_id` can be reused between
requests. If a generation request appears to time out, poll
[`GET /v1/job/{job_id}`](https://docs.legnext.ai/api-reference/task-management/get-task) instead of
submitting a replacement. Get Task does not require the API key, but its
capability URL must remain private.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.