Zego Shifts API

Start and end insurance cover periods (shifts) for customers.

Operations 6

POST /v1/shift/login/ Start an individual customer's shift #
POST /v1/shift/logout/ End a customer's shift #
POST /v1/batch/login/ Start shifts for multiple customers #
POST /v1/batch/logout/ End shifts for multiple customers #
POST /v2/shift/ Create a shift (open or finished) #
PUT /v2/shift/{id} Update a shift with an end time #

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/zego-shifts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

zego-shifts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Zego Partner Shifts API
  version: '2.0'
  description: The Zego Partner API is a RESTful interface for partners and work providers to interact with Zego on behalf of Zego customers.
  contact:
    name: Zego Partnerships
    url: https://developer.zego.com/
  x-apievangelist-generated: true
  x-source: https://developer.zego.com/
servers:
- url: https://api.zego.com
  description: Production
security:
- partnerToken: []
tags:
- name: Shifts
  description: Start and end insurance cover periods (shifts) for customers.
paths:
  /v1/shift/login/:
    post:
      operationId: startShift
      tags:
      - Shifts
      summary: Start an individual customer's shift
      description: Starts a shift, activating insurance cover for a single customer.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Shift login payload identifying the customer.
      responses:
        '200':
          description: Shift started
        '400':
          description: Invalid request
        '401':
          description: Unauthorized
  /v1/shift/logout/:
    post:
      operationId: endShift
      tags:
      - Shifts
      summary: End a customer's shift
      description: Ends a shift, deactivating insurance cover for a single customer.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Shift logout payload identifying the customer.
      responses:
        '200':
          description: Shift ended
        '400':
          description: Invalid request
        '401':
          description: Unauthorized
  /v1/batch/login/:
    post:
      operationId: startBatchShifts
      tags:
      - Shifts
      summary: Start shifts for multiple customers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Batch shift login payload for multiple customers.
      responses:
        '200':
          description: Batch shifts started
        '400':
          description: Invalid request
        '401':
          description: Unauthorized
  /v1/batch/logout/:
    post:
      operationId: endBatchShifts
      tags:
      - Shifts
      summary: End shifts for multiple customers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Batch shift logout payload for multiple customers.
      responses:
        '200':
          description: Batch shifts ended
        '400':
          description: Invalid request
        '401':
          description: Unauthorized
  /v2/shift/:
    post:
      operationId: createShift
      tags:
      - Shifts
      summary: Create a shift (open or finished)
      description: Creates a shift that may be left open or created with an end time.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Shift creation payload.
      responses:
        '201':
          description: Shift created
        '400':
          description: Invalid request
        '401':
          description: Unauthorized
  /v2/shift/{id}:
    put:
      operationId: updateShift
      tags:
      - Shifts
      summary: Update a shift with an end time
      parameters:
      - name: id
        in: path
        required: true
        description: Identifier of the shift to update.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Shift update payload (end time).
      responses:
        '200':
          description: Shift updated
        '400':
          description: Invalid request
        '401':
          description: Unauthorized
        '404':
          description: Shift not found
components:
  securitySchemes:
    partnerToken:
      type: apiKey
      in: header
      name: Authorization
      description: Partner authorization token issued by the Zego Partnerships Manager, sent in the Authorization header.