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

# Get Organization ID Job

> Check a run that creates accounts from an organization ID

# Get Organization ID Job

Reports a job started by [Create Accounts From an Organization ID](/api-reference/accounts/organization-ids-create). Poll every few seconds until `state` is `completed` or `failed`.

Finished jobs are kept for a limited time. After that, this returns `404`, and the accounts it created stay.

Requires the `subscribers:read` scope.

## Request

<ParamField path="jobId" type="string" required>
  The `jobId` returned when the job started, URL-encoded.
</ParamField>

```bash theme={null}
curl "https://api.sequenzy.com/api/v1/account-suggestions/organization-ids/jobs/backfill-accounts%3Acomp_123%3Aorganization_id" \
  -H "Authorization: Bearer API_KEY"
```

## Response

<ResponseField name="job" type="object">
  <Expandable title="properties">
    <ResponseField name="jobId" type="string" />

    <ResponseField name="state" type="string">
      `queued`, `running`, `completed` or `failed`.
    </ResponseField>

    <ResponseField name="settings" type="object | null">
      What the run reads: `source`, `propertyKey` and `nameKey`.
    </ResponseField>

    <ResponseField name="result" type="object | null">
      Present when `completed`: `accountsCreated`, `accountsUpdated` (existing
      accounts that got a name or domain), `membershipsCreated`,
      `membershipsUpdated`, `skipped` (contacts that no longer exist, or invalid
      IDs) and `truncated` (history was larger than one run covers; start the
      job again to continue).
    </ResponseField>

    <ResponseField name="error" type="string | null">
      Present when `failed`.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "job": {
      "jobId": "backfill-accounts:comp_123:organization_id",
      "state": "completed",
      "settings": {
        "source": "event",
        "propertyKey": "organization_id",
        "nameKey": null
      },
      "result": {
        "accountsCreated": 843,
        "accountsUpdated": 0,
        "membershipsCreated": 2104,
        "membershipsUpdated": 0,
        "skipped": 3,
        "truncated": false
      },
      "error": null
    }
  }
  ```

  ```json 401 theme={null}
  { "success": false, "error": "Unauthorized" }
  ```

  ```json 403 theme={null}
  { "success": false, "error": "No company selected" }
  ```

  ```json 404 theme={null}
  { "success": false, "error": "Job not found" }
  ```
</ResponseExample>
