---
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

---

[API](https://skmtc.net/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.net/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/versions/f0601ed97bd3/schema)
