Cloudflare Logpush Jobs API

Create, list, update, and delete Logpush jobs that push logs to external destinations.

Documentation

📖
Documentation
https://developers.cloudflare.com/api/
📖
GettingStarted
https://developers.cloudflare.com/fundamentals/api/get-started/
📖
Authentication
https://developers.cloudflare.com/fundamentals/api/get-started/create-token/
📖
RateLimits
https://developers.cloudflare.com/fundamentals/api/reference/limits/
📖
Documentation
https://developers.cloudflare.com/api/operations/accounts-list-accounts
📖
APIReference
https://developers.cloudflare.com/api/resources/accounts/
📖
APIReference
https://developers.cloudflare.com/ssl/
📖
Documentation
https://developers.cloudflare.com/api/operations/ip-access-rules-for-a-user-list-ip-access-rules
📖
Documentation
https://developers.cloudflare.com/api/operations/user'-s-account-memberships-list-memberships
📖
Documentation
https://developers.cloudflare.com/api/operations/radar-get-search-global
📖
APIReference
https://developers.cloudflare.com/radar/
📖
GettingStarted
https://developers.cloudflare.com/radar/get-started/
📖
Documentation
https://developers.cloudflare.com/api/operations/user-user-details
📖
APIReference
https://developers.cloudflare.com/api/resources/user/
📖
Documentation
https://developers.cloudflare.com/api/operations/zones-get
📖
APIReference
https://developers.cloudflare.com/api/resources/zones/
📖
Documentation
https://developers.cloudflare.com/dns/
📖
APIReference
https://developers.cloudflare.com/api/resources/dns/
📖
Documentation
https://developers.cloudflare.com/workers/
📖
APIReference
https://developers.cloudflare.com/api/resources/workers/
📖
GettingStarted
https://developers.cloudflare.com/workers/get-started/
📖
Documentation
https://developers.cloudflare.com/workers-ai/
📖
GettingStarted
https://developers.cloudflare.com/workers-ai/get-started/rest-api/
📖
APIReference
https://developers.cloudflare.com/workers-ai/configuration/open-ai-compatibility/
📖
APIReference
https://developers.cloudflare.com/workers-ai/models/
📖
Documentation
https://developers.cloudflare.com/ai-gateway/
📖
APIReference
https://developers.cloudflare.com/ai-gateway/usage/providers/
📖
GettingStarted
https://developers.cloudflare.com/ai-gateway/get-started/
📖
Documentation
https://developers.cloudflare.com/r2/
📖
APIReference
https://developers.cloudflare.com/r2/api/s3/api/
📖
GettingStarted
https://developers.cloudflare.com/r2/get-started/
📖
Documentation
https://developers.cloudflare.com/d1/
📖
APIReference
https://developers.cloudflare.com/api/resources/d1/
📖
GettingStarted
https://developers.cloudflare.com/d1/get-started/
📖
Documentation
https://developers.cloudflare.com/kv/
📖
APIReference
https://developers.cloudflare.com/api/resources/kv/
📖
GettingStarted
https://developers.cloudflare.com/kv/get-started/
📖
Documentation
https://developers.cloudflare.com/queues/
📖
APIReference
https://developers.cloudflare.com/api/resources/queues/
📖
GettingStarted
https://developers.cloudflare.com/queues/get-started/
📖
Documentation
https://developers.cloudflare.com/durable-objects/
📖
GettingStarted
https://developers.cloudflare.com/durable-objects/get-started/
📖
APIReference
https://developers.cloudflare.com/durable-objects/api/
📖
Documentation
https://developers.cloudflare.com/vectorize/
📖
GettingStarted
https://developers.cloudflare.com/vectorize/get-started/intro/
📖
APIReference
https://developers.cloudflare.com/vectorize/reference/client-api/
📖
Documentation
https://developers.cloudflare.com/pages/
📖
APIReference
https://developers.cloudflare.com/pages/configuration/api/
📖
GettingStarted
https://developers.cloudflare.com/pages/get-started/
📖
Documentation
https://developers.cloudflare.com/stream/
📖
GettingStarted
https://developers.cloudflare.com/stream/get-started/
📖
APIReference
https://developers.cloudflare.com/api/resources/stream/
📖
Documentation
https://developers.cloudflare.com/images/
📖
GettingStarted
https://developers.cloudflare.com/images/get-started/
📖
APIReference
https://developers.cloudflare.com/api/resources/images/
📖
Documentation
https://developers.cloudflare.com/turnstile/
📖
GettingStarted
https://developers.cloudflare.com/turnstile/get-started/
📖
APIReference
https://developers.cloudflare.com/api/resources/turnstile/
📖
Documentation
https://developers.cloudflare.com/logs/
📖
APIReference
https://developers.cloudflare.com/api/resources/logpush/
📖
GettingStarted
https://developers.cloudflare.com/logs/get-started/
📖
Documentation
https://developers.cloudflare.com/hyperdrive/
📖
APIReference
https://developers.cloudflare.com/api/resources/hyperdrive/
📖
GettingStarted
https://developers.cloudflare.com/hyperdrive/get-started/

Specifications

Other Resources

OpenAPI Specification

cloudflare-logpush-jobs-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Cloudflare / Accounts Logpush Jobs API
  description: Needs description.
  license:
    name: BSD-3-Clause
    url: https://opensource.org/licenses/BSD-3-Clause
  version: 4.0.0
servers:
- url: https://api.cloudflare.com/client/v4
  description: Client API
security:
- api_email: []
  api_key: []
- api_token: []
- user_service_key: []
tags:
- name: Logpush Jobs
  description: Create, list, update, and delete Logpush jobs that push logs to external destinations.
paths:
  /zones/{zone_id}/logpush/jobs:
    get:
      operationId: listLogpushJobs
      summary: Cloudflare List Logpush Jobs
      description: Returns all Logpush jobs for the zone.
      tags:
      - Logpush Jobs
      parameters:
      - $ref: '#/components/parameters/ZoneId'
      responses:
        '200':
          description: List of Logpush jobs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogpushJobListResponse'
              examples:
                Listlogpushjobs200Example:
                  summary: Default listLogpushJobs 200 response
                  x-microcks-default: true
                  value:
                    result:
                    - id: abc123
                      name: Example Title
                      enabled: true
                      dataset: http_requests
                      destination_conf: example_value
                      logpull_options: example_value
                      frequency: high
                      last_complete: '2026-01-15T10:30:00Z'
                      last_error: '2026-01-15T10:30:00Z'
                      error_message: example_value
                    success: true
        '401':
          description: Unauthorized.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      operationId: createLogpushJob
      summary: Cloudflare Create Logpush Job
      description: Create a new Logpush job to push logs to an external destination.
      tags:
      - Logpush Jobs
      parameters:
      - $ref: '#/components/parameters/ZoneId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LogpushJobInput'
            examples:
              CreatelogpushjobRequestExample:
                summary: Default createLogpushJob request
                x-microcks-default: true
                value:
                  name: Example Title
                  enabled: true
                  dataset: example_value
                  destination_conf: example_value
                  logpull_options: example_value
                  frequency: high
                  filter: example_value
                  ownership_challenge: example_value
      responses:
        '200':
          description: Logpush job created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogpushJobResponse'
              examples:
                Createlogpushjob200Example:
                  summary: Default createLogpushJob 200 response
                  x-microcks-default: true
                  value:
                    result:
                      id: abc123
                      name: Example Title
                      enabled: true
                      dataset: http_requests
                      destination_conf: example_value
                      logpull_options: example_value
                      frequency: high
                      last_complete: '2026-01-15T10:30:00Z'
                      last_error: '2026-01-15T10:30:00Z'
                      error_message: example_value
                    success: true
                    errors:
                    - {}
                    messages:
                    - {}
        '400':
          description: Bad request.
        '401':
          description: Unauthorized.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /zones/{zone_id}/logpush/jobs/{job_id}:
    get:
      operationId: getLogpushJob
      summary: Cloudflare Get Logpush Job
      description: Retrieve details of a specific Logpush job.
      tags:
      - Logpush Jobs
      parameters:
      - $ref: '#/components/parameters/ZoneId'
      - $ref: '#/components/parameters/JobId'
      responses:
        '200':
          description: Logpush job details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogpushJobResponse'
              examples:
                Getlogpushjob200Example:
                  summary: Default getLogpushJob 200 response
                  x-microcks-default: true
                  value:
                    result:
                      id: abc123
                      name: Example Title
                      enabled: true
                      dataset: http_requests
                      destination_conf: example_value
                      logpull_options: example_value
                      frequency: high
                      last_complete: '2026-01-15T10:30:00Z'
                      last_error: '2026-01-15T10:30:00Z'
                      error_message: example_value
                    success: true
                    errors:
                    - {}
                    messages:
                    - {}
        '401':
          description: Unauthorized.
        '404':
          description: Job not found.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    put:
      operationId: updateLogpushJob
      summary: Cloudflare Update Logpush Job
      description: Update the configuration of a Logpush job.
      tags:
      - Logpush Jobs
      parameters:
      - $ref: '#/components/parameters/ZoneId'
      - $ref: '#/components/parameters/JobId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LogpushJobInput'
            examples:
              UpdatelogpushjobRequestExample:
                summary: Default updateLogpushJob request
                x-microcks-default: true
                value:
                  name: Example Title
                  enabled: true
                  dataset: example_value
                  destination_conf: example_value
                  logpull_options: example_value
                  frequency: high
                  filter: example_value
                  ownership_challenge: example_value
      responses:
        '200':
          description: Job updated.
        '401':
          description: Unauthorized.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    delete:
      operationId: deleteLogpushJob
      summary: Cloudflare Delete Logpush Job
      description: Delete a Logpush job.
      tags:
      - Logpush Jobs
      parameters:
      - $ref: '#/components/parameters/ZoneId'
      - $ref: '#/components/parameters/JobId'
      responses:
        '200':
          description: Job deleted.
        '401':
          description: Unauthorized.
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    LogpushJobResponse:
      type: object
      properties:
        result:
          $ref: '#/components/schemas/LogpushJob'
        success:
          type: boolean
          example: true
        errors:
          type: array
          items:
            type: object
          example: []
        messages:
          type: array
          items:
            type: object
          example: []
    LogpushJobInput:
      type: object
      properties:
        name:
          type: string
          description: Name for the job.
          example: Example Title
        enabled:
          type: boolean
          description: Whether the job is active.
          example: true
        dataset:
          type: string
          description: The log dataset to push.
          example: example_value
        destination_conf:
          type: string
          description: Destination URI.
          example: example_value
        logpull_options:
          type: string
          description: Options for log fields and formatting.
          example: example_value
        frequency:
          type: string
          enum:
          - high
          - low
          example: high
        filter:
          type: string
          description: JSON filter expression to limit logs pushed.
          example: example_value
        ownership_challenge:
          type: string
          description: The ownership challenge token.
          example: example_value
    LogpushJob:
      type: object
      properties:
        id:
          type: integer
          description: The unique identifier of the job.
          example: abc123
        name:
          type: string
          description: A human-readable name for the job.
          example: Example Title
        enabled:
          type: boolean
          description: Whether the job is active.
          example: true
        dataset:
          type: string
          description: The log dataset.
          enum:
          - http_requests
          - firewall_events
          - dns_logs
          - spectrum_events
          - nel_reports
          - audit_logs
          example: http_requests
        destination_conf:
          type: string
          description: The destination configuration URI.
          example: example_value
        logpull_options:
          type: string
          description: Logpull options specifying fields, timestamps, and sample rate.
          example: example_value
        frequency:
          type: string
          enum:
          - high
          - low
          description: Log push frequency.
          example: high
        last_complete:
          type: string
          format: date-time
          description: Timestamp of the last successful push.
          example: '2026-01-15T10:30:00Z'
        last_error:
          type: string
          format: date-time
          description: Timestamp of the last error.
          example: '2026-01-15T10:30:00Z'
        error_message:
          type: string
          description: Last error message.
          example: example_value
    LogpushJobListResponse:
      type: object
      properties:
        result:
          type: array
          items:
            $ref: '#/components/schemas/LogpushJob'
          example: []
        success:
          type: boolean
          example: true
  parameters:
    JobId:
      name: job_id
      in: path
      required: true
      description: The unique identifier of the Logpush job.
      schema:
        type: integer
    ZoneId:
      name: zone_id
      in: path
      required: true
      description: The unique identifier of the zone.
      schema:
        type: string