
# Get a user data export job

`GET /v1/jobs/user-exports/{job_id}` · permission `users:export`

Returns a job created with [Export a user's data](/docs/api/management/users/export).

| `status` | Meaning |
|---|---|
| `queued` | Waiting to run. |
| `running` | The package is being built. |
| `completed` | The package is ready; `file` has its size and SHA-256. Download it before `expires_at`. |
| `failed` | No package; `failure_reason` is `too_large`, `user_deleted`, `source_unavailable` or `attempts_exhausted`. |
| `expired` | The package was deleted 7 days after completion. Start a new export. |

Exports that end users request from their own account page are not visible here.

## Request

| Parameter | In | Required | Description |
|---|---|---|---|
| `job_id` | path | yes | Job id, prefixed `job_`. |

## Response

`200 OK`.

```json
{
  "id": "job_01j9xk3m7q8r2s4t6v8w0y2z4e",
  "kind": "subject",
  "source": "management_api",
  "user_id": "usr_01j9xk3m7q8r2s4t6v8w0y2z4a",
  "status": "completed",
  "include_app_metadata": true,
  "include_ip": false,
  "file": {
    "size": 48213,
    "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
  },
  "failure_reason": null,
  "requested_by": { "type": "api_key", "id": "key_01j9xk3m7q8r2s4t6v8w0y2z4b" },
  "created_at": "2026-10-28T09:00:00Z",
  "started_at": "2026-10-28T09:00:02Z",
  "completed_at": "2026-10-28T09:00:09Z",
  "expires_at": "2026-11-04T09:00:09Z"
}
```

## Errors

Every error is an `application/problem+json` body with a stable `code`.

| HTTP | `code` | When |
|---|---|---|
| 401 | `unauthenticated` | The API key is missing, invalid or revoked. |
| 403 | `insufficient_permissions` | The key lacks the `users:export` permission. |
| 404 | `not_found` | The job does not exist in this environment (or the id is malformed). |
| 429 | `rate_limited` | The rate limit was exceeded; honor `Retry-After`. |
| 503 | `service_unavailable` | A dependency is temporarily unavailable; retry later. |

## Example

```bash
curl https://api.eu.keenauth.com/v1/jobs/user-exports/job_01j9xk3m7q8r2s4t6v8w0y2z4e \
  -H "Authorization: Bearer $KEENAUTH_SECRET_KEY"
```

CLI: `keenauth jobs user-exports get job_01j9xk3m7q8r2s4t6v8w0y2z4e`
