Winnr Jobs API

Async job status

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

GET /v1/jobs List jobs #
GET /v1/jobs/{job_id} Get job status #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/winnr-app:winnr-app-jobs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

winnr-app-jobs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Winnr Jobs API
  description: 'The Winnr API provides programmatic access to manage email domains, email users,

    and inbox operations. Use this API to integrate Winnr''s email infrastructure

    into your applications.


    ## Authentication


    All API requests require authentication using an API token.


    API tokens start with `wnr_` and can be created in your account settings

    or via the `POST /v1/auth/tokens` endpoint.


    Include your token in the `Authorization` header:

    ```

    Authorization: Bearer wnr_xxx...

    ```


    ## Rate Limiting


    API requests are rate limited based on your account tier:


    | Plan | Requests/min | Burst |

    |------|--------------|-------|

    | Startup | 300 | 500 |

    | Enterprise | 500 | 800 |


    Rate limit headers are included in all responses:

    - `X-RateLimit-Limit` - Your per-minute limit

    - `X-RateLimit-Remaining` - Requests remaining in current window

    - `X-RateLimit-Reset` - Unix timestamp when the window resets


    ## Response envelope


    **Every** success response is wrapped in the same envelope — there are no

    bare resource bodies. Single-resource endpoints return:


    ```json

    {

    "meta": { "request_id": "D0tCQjBLIAMEVCg=", "timestamp": "2026-09-17T03:16:55Z" },

    "data": { "...": "the resource" }

    }

    ```


    List endpoints add a sibling `pagination` object and return an array in

    `data`:


    ```json

    {

    "meta": { "request_id": "...", "timestamp": "..." },

    "data": [ { "...": "resource" } ],

    "pagination": { "has_more": true, "cursor": "eyJ...", "count": 25 }

    }

    ```


    Always read the resource from `data`, never from the top level. The

    request id lives at `meta.request_id` on success and at `error.request_id`

    on failure — quote it when contacting support.


    ## Pagination


    List endpoints support cursor-based pagination:

    - `limit` - Number of items per page (default: 25, max: 100)

    - `cursor` - Cursor for next page (from previous response)


    ## Asynchronous endpoints


    Endpoints that touch the mail servers or a registrar (mailbox creation,

    domain setup, domain deletion, warming changes) do **not** perform the work

    inline. They validate the request, enqueue it, and return a job receipt —

    `data.job_id` with `data.status: "pending"` — instead of the created

    resource. The affected endpoints say so in their own description.


    Poll `GET /v1/jobs/{job_id}` until `status` is `completed` or `failed`,

    then read the resource from its own endpoint. Typical completion is a few

    seconds to a couple of minutes.


    **Reconciling a timed-out or failed request.** These endpoints are *not*

    idempotent: a blind retry can enqueue a second mailbox. If a request times

    out before you see a `job_id`, do not retry immediately — first check

    whether the work already landed:


    1. `GET /v1/jobs?filter[type]=domain_setup&filter[status]=in_progress` and

    look for a job whose input matches your request; if one exists, poll it

    rather than resubmitting.

    2. Otherwise `GET /v1/email-users?filter[domain]={domain}` (or the relevant

    resource list) and check whether the address already exists.


    Only resubmit when neither a job nor the resource is present. Resubmitting

    an address that already exists is safe in the sense that it is rejected

    with `400 validation_error` rather than silently duplicated.'
  version: 1.0.0
  contact:
    name: Winnr Support
    email: support@winnr.app
  license:
    name: Proprietary
    url: https://winnr.app/terms
servers:
- url: https://api.winnr.app
  description: Production API
- url: https://c8qc9z97f5.execute-api.us-east-1.amazonaws.com
  description: Production API (direct)
- url: http://localhost:3000
  description: Local development
security:
- bearerAuth: []
tags:
- name: Jobs
  description: Async job status
paths:
  /v1/jobs:
    get:
      tags:
      - Jobs
      summary: List jobs
      description: 'List recent async jobs for the account, ordered by `created_at` descending.


        Jobs are an audit trail of async operations and are retained after the

        underlying resource (e.g. a domain) is deleted. To see only active work,

        filter with `filter[status]=in_progress`.


        For live resource state (e.g. whether a domain currently exists), query

        the corresponding resource endpoint (e.g. `GET /v1/domains/{domain_id}`).'
      operationId: listJobs
      parameters:
      - $ref: '#/components/parameters/Limit'
      - name: filter[status]
        in: query
        required: false
        schema:
          type: string
          enum:
          - pending
          - in_progress
          - completed
          - failed
        description: Filter by job status.
      - name: filter[type]
        in: query
        required: false
        schema:
          type: string
          enum:
          - domain_setup
          - domain_delete
          - email_user_delete
          - warming_enable
          - warming_disable
        description: Filter by job type.
      responses:
        '200':
          description: List of jobs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /v1/jobs/{job_id}:
    get:
      tags:
      - Jobs
      summary: Get job status
      description: Get the status of an async job.
      operationId: getJob
      parameters:
      - $ref: '#/components/parameters/JobId'
      responses:
        '200':
          description: Job details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Job:
      type: object
      description: "An async job tracking a long-running operation (domain setup/deletion,\nwarming enable/disable, etc.).\n\n**Lifecycle:** `status` starts as `pending`, transitions to `in_progress`\nonce the worker picks up the message, and ends as `completed` or `failed`.\nOn `failed`, the `error` object describes what went wrong.\n\n**Progress map:** `progress` is a map of step name to step status\n(`pending` → `in_progress` → `completed`/`failed`/`skipped`). Step names\ndepend on job type:\n\n- `domain_setup`: any subset of `registration`, `mailcow`, `dns_zone`, `dns_records`\n  (only the steps requested by the original setup call are present)\n- `domain_delete`: `dns`, `mailcow`, `firebase`\n- `email_user_delete`, `warming_enable`, `warming_disable`: counter-shaped\n  progress with `total`, `completed`, `failed` integer fields\n"
      properties:
        job_id:
          type: string
          description: Unique job identifier.
        type:
          type: string
          enum:
          - domain_setup
          - domain_delete
          - email_user_delete
          - warming_enable
          - warming_disable
        status:
          type: string
          enum:
          - pending
          - in_progress
          - completed
          - failed
        progress:
          type: object
          additionalProperties: true
          description: 'Per-step progress for named-step jobs (domain_setup/domain_delete) or

            counter-shaped progress (`{total, completed, failed}`) for batch jobs.

            '
          example:
            registration: completed
            mailcow: completed
            dns_zone: in_progress
            dns_records: pending
        failures:
          type: array
          description: '`warming_enable` jobs only: one entry per mailbox that could not be

            connected to warming (empty otherwise).

            '
          items:
            type: object
            properties:
              user_id:
                type: string
              email:
                type: string
              error:
                type: string
                description: Customer-facing reason, e.g. a rejected app password
        result:
          type: object
          nullable: true
          description: Operation result (shape varies by job type). `null` until job completes.
        error:
          type: object
          nullable: true
          description: Error details when `status=failed`.
          properties:
            message:
              type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        completed_at:
          type: string
          format: date-time
          nullable: true
    Pagination:
      type: object
      description: 'Pagination metadata. Cursor-based endpoints (e.g. `/v1/domains`,

        `/v1/email-users`, `/v1/inbox`, `/v1/email-users/{id}/inbox`) populate

        `has_more` and `cursor`. Offset-based endpoints (e.g. `/v1/warming`)

        populate `page`, `per_page`, and `total`. `count` (number of items in

        the current page) is included where available.

        '
      properties:
        has_more:
          type: boolean
          description: Whether more pages exist after this one (cursor-based endpoints).
        cursor:
          type: string
          nullable: true
          description: Opaque cursor to pass as `?cursor=…` for the next page.
        count:
          type: integer
          description: Number of items returned in this response.
        total:
          type: integer
          description: Total number of items across all pages (offset-based endpoints).
        page:
          type: integer
          description: 1-based page number (offset-based endpoints).
        per_page:
          type: integer
          description: Items per page (offset-based endpoints).
    JobResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Job'
        meta:
          $ref: '#/components/schemas/Meta'
    Meta:
      type: object
      properties:
        request_id:
          type: string
        timestamp:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
        meta:
          $ref: '#/components/schemas/Meta'
    JobListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Job'
        pagination:
          $ref: '#/components/schemas/Pagination'
        meta:
          $ref: '#/components/schemas/Meta'
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: not_found
              message: Resource not found
    Unauthorized:
      description: Authentication required or token invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: unauthorized
              message: Invalid or revoked API token
  parameters:
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        default: 25
        minimum: 1
        maximum: 100
      description: Number of items per page
    JobId:
      name: job_id
      in: path
      required: true
      schema:
        type: string
      description: Job ID
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API token (wnr_xxx...)