---
title: "Get scheduled task"
method: GET
path: "/tasks/scheduled/{id}"
tags: ["Scheduled Tasks"]
---

# Get scheduled task

`GET /tasks/scheduled/{id}`

Use when you need to load a single scheduled task (e.g. to show details in a UI or check its configuration).

## Path parameters

- `id` string, required

## Response `200`

OK

- ScheduledTaskResponse
  - `connection_id` string
  - `created_at` string, date-time
  - `enabled` boolean
  - `entity_type` 'events' | 'invoice' | 'credit_topups' | 'credit_usage' | 'usage_analytics'
  - `environment_id` string
  - `id` string
  - `interval` '15MIN' | '30MIN' | 'custom' | 'hourly' | 'daily'
  - `job_config` TypesS3JobConfig
    - `bucket` string — S3 bucket name
    - `compression` 'none' | 'gzip'
    - `encryption` 'AES256' | 'aws:kms' | 'aws:kms:dsse'
    - `endpoint_url` string — Custom S3 endpoint URL (e.g., "http://minio:9000" for MinIO)
    - `export_metadata_fields` TypesExportMetadataField[] — Optional user-selected metadata columns
      - `column_name` string — CSV column header to be shown in the exported file
      - `entity_type` 'customer' | 'wallet', required
      - `field_key` string, required — metadata key to look up
    - `key_prefix` string — Optional prefix for S3 keys (e.g., "flexprice-exports/")
    - `region` string — AWS region (e.g., "us-west-2")
    - `use_path_style` boolean — Use path-style addressing (required for MinIO)
  - `status` string
  - `tenant_id` string
  - `updated_at` string, date-time

## Other responses

- `400` — Invalid request
- `404` — Resource not found
- `500` — Server error

## Changes

- **2026-05-18** `8ec2edea6b20` — 6 warning
  - removed the optional property `details` from the response with the `400` status
  - removed the optional property `details` from the response with the `404` status
  - removed the optional property `details` from the response with the `500` status
  - added the new `too_many_requests` enum value to the `code` response property for the response status `400`
  - …2 more
- **2026-05-13** `7934fabd26c1` — 1 warning, 1 info
  - added the new `usage_analytics` enum value to the `entity_type` response property for the response status `200`
  - added the optional property `job_config/export_metadata_fields` to the response with the `200` status
- **2026-04-06** `95af41a12111` — 6 warning, 12 info
  - removed the optional property `error` from the response with the `400` status
  - removed the optional property `error` from the response with the `404` status
  - removed the optional property `error` from the response with the `500` status
  - removed the optional property `success` from the response with the `400` status
  - …14 more
- **2026-04-04** `3d452eb9ebcc` — 1 warning
  - added the new `30MIN` enum value to the `interval` response property for the response status `200`

[Change history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/tasks/scheduled/:id/get.md)

---

[API](https://skmtc.dev/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.dev/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/revisions/2a40f94de722/schema)
