Skip to main content
GET
/
v1
/
job
/
{job_id}
Get Task Status
curl --request GET \
  --url https://api.legnext.ai/api/v1/job/{job_id} \
  --header 'x-api-key: <api-key>'
Retrieve the status and results of a job using its job ID.

Status Values

StatusDescription
pendingJob is queued and waiting to be processed
stagedJob is prepared and staged for processing
processingJob is currently being processed
failedJob has failed due to an error
completedJob has completed successfully

Endpoint

GET https://api.legnext.ai/api/v1/job/{job_id}

Headers

HeaderTypeRequiredDescription
x-api-keystringYesYour API key

Path Parameters

ParameterTypeRequiredDescription
job_idstringYesThe unique identifier of the job

Example Request

curl -X GET "https://api.legnext.ai/api/v1/job/98761286-cdc7-4085-abfe-c9f149ff722b" \
  -H "x-api-key: YOUR_API_KEY"

Response

Returns the complete job information including current status and results.
{
    "job_id": "a616de55-6130-4e1f-b8cd-531ed0599353",
    "model": "midjourney",
    "task_type": "diffusion",
    "status": "completed",
    "config": {
        "service_mode": "public",
        "webhook_config": {
            "endpoint": "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "secret": ""
        }
    },
    "input": null,
    "output": {
        "image_url": "https://cdn.legnext.ai/temp/1760408558306.png",
        "image_urls": [
            "https://cdn.legnext.ai/mj/a616de55-6130-4e1f-b8cd-531ed0599353_0.png",
            "https://cdn.legnext.ai/mj/a616de55-6130-4e1f-b8cd-531ed0599353_1.png",
            "https://cdn.legnext.ai/mj/a616de55-6130-4e1f-b8cd-531ed0599353_2.png",
            "https://cdn.legnext.ai/mj/a616de55-6130-4e1f-b8cd-531ed0599353_3.png"
        ],
        "seed": "1904983176",
        "available_actions": {
            "edit": [
                0,
                1,
                2,
                3
            ],
            "inpaint": [
                0,
                1,
                2,
                3
            ],
            "outpaint": [
                0,
                1,
                2,
                3
            ],
            "pan": [
                0,
                1,
                2,
                3
            ],
            "remix": [
                0,
                1,
                2,
                3
            ],
            "reroll": true,
            "upscale": [
                0,
                1,
                2,
                3
            ],
            "variation": [
                0,
                1,
                2,
                3
            ]
        }
    },
    "meta": {
        "created_at": "2025-10-14T02:22:04Z",
        "started_at": "2025-10-14T02:22:06Z",
        "ended_at": "2025-10-14T02:22:50Z",
        "usage": {
            "type": "point",
            "frozen": 80,
            "consume": 80
        }
    },
    "detail": null,
    "logs": [],
    "error": {
        "code": 0,
        "raw_message": "",
        "message": "",
        "detail": null
    }
}

Authorizations

x-api-key
string
header
required

API key for authentication

Path Parameters

job_id
string<uuid>
required

The unique identifier of the job

Response

200

Task information retrieved successfully