Hubstaff Webhooks API

Webhook subscriptions delivering real-time event notifications (timer.start, timer.stop, task.create, shift.late, etc.).

GitHub OpenAPI

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v2/organizations/{organization_id}/webhooks Subscribe an endpoint to organization events · Create organization webhook #
Ask an LLM
“How do I get Hubstaff to send time tracking events to my own server?”
“What do I need to send back to confirm my endpoint owns the webhook?”
Tell an agent
Create a webhook for organization {organization_id} that posts to my URL.
Subscribe my endpoint to organization {organization_id} events.
GET /v2/webhooks/{webhook_id} Get a webhook's status and events · Get webhook #
Ask an LLM
“Is my webhook active or still pending verification?”
“Which events does a given webhook subscribe to?”
Tell an agent
Show webhook {webhook_id}.
Check the status and events of webhook {webhook_id}.
DELETE /v2/webhooks/{webhook_id} Delete a webhook · Delete webhook #
Ask an LLM
“How do I stop Hubstaff from sending events to an endpoint I no longer use?”
“Does deleting a webhook stop events immediately?”
Tell an agent destructive · confirm first
Delete webhook {webhook_id}.
Remove the webhook {webhook_id} so it stops receiving events.
POST /v2/webhooks/{webhook_id}/activate Activate a verified webhook · Activate webhook #
Ask an LLM
“How do I start receiving events on a webhook after verifying my endpoint?”
“What do I send to activate a webhook once my endpoint is verified?”
Tell an agent
Activate webhook {webhook_id}.
Turn on webhook {webhook_id} so it starts sending events.

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/hubstaff:hubstaff-webhooks-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

hubstaff-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hubstaff Webhooks API
  description: The Hubstaff API v2 provides programmatic read and write access to Hubstaff's time tracking, timesheet, workforce management, and project management data - organizations, members, teams, projects, tasks, clients, activities (10-minute tracked time blocks with activity percentages), daily activity aggregates, time entries, timesheets and approvals, time off requests/policies/balances, attendance schedules and shifts, screenshots, app and URL usage, invoices, team payments, and webhooks.
  version: '2.0'
  contact:
    name: Hubstaff Developer Portal
    url: https://developer.hubstaff.com/
  termsOfService: https://hubstaff.com/terms
servers:
- url: https://api.hubstaff.com
  description: Hubstaff production API (paths include the /v2 prefix)
security:
- oauth2:
  - hubstaff:read
- personalAccessToken: []
tags:
- name: Webhooks
  description: Webhook subscriptions delivering real-time event notifications (timer.start, timer.stop, task.create, shift.late, etc.).
paths:
  /v2/organizations/{organization_id}/webhooks:
    post:
      operationId: postV2OrganizationsOrganizationIdWebhooks
      tags:
      - Webhooks
      summary: Create organization webhook
      description: 'Creates a new webhook subscription for the organization. After creation, Hubstaff will send a POST request to your `target_url` with an empty body and an `X-Hook-Secret` header.


        Your endpoint must respond with HTTP 200 and echo the same `X-Hook-Secret` header to verify ownership.


        Store the secret value - you''ll need it to activate the webhook.'
      parameters:
      - name: organization_id
        in: path
        required: true
        schema:
          type: integer
          format: int32
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Request payload. See the live Hubstaff API reference (https://api.hubstaff.com/v2/docs) for the full schema.
      responses:
        '201':
          description: Create organization webhook
        '429':
          description: Rate limit exceeded (1,000 requests per hour per application).
  /v2/webhooks/{webhook_id}:
    get:
      operationId: getV2WebhooksWebhookId
      tags:
      - Webhooks
      summary: Get webhook
      description: Returns the details of a specific webhook including its status, events, and target URL.
      parameters:
      - name: webhook_id
        in: path
        description: Webhook ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Get webhook
        '429':
          description: Rate limit exceeded (1,000 requests per hour per application).
    delete:
      operationId: deleteV2WebhooksWebhookId
      tags:
      - Webhooks
      summary: Delete webhook
      description: Permanently deletes a webhook. The webhook will stop receiving events immediately.
      parameters:
      - name: webhook_id
        in: path
        description: Webhook ID
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Delete webhook
        '429':
          description: Rate limit exceeded (1,000 requests per hour per application).
  /v2/webhooks/{webhook_id}/activate:
    post:
      operationId: postV2WebhooksWebhookIdActivate
      tags:
      - Webhooks
      summary: Activate webhook
      description: 'Activates a webhook after endpoint verification.


        You must include the `X-Hook-Secret` header with the secret value you received during the verification step.


        Once activated, the webhook will start receiving events.'
      parameters:
      - name: webhook_id
        in: path
        description: Webhook ID
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Activate webhook
        '429':
          description: Rate limit exceeded (1,000 requests per hour per application).
components:
  securitySchemes:
    oauth2:
      type: oauth2
      description: Hubstaff Account OpenID Connect / OAuth 2.0 authentication. Scopes are hubstaff:read and hubstaff:write.
      flows:
        authorizationCode:
          authorizationUrl: https://account.hubstaff.com/authorizations/new
          tokenUrl: https://account.hubstaff.com/access_tokens
          scopes:
            hubstaff:read: Read access to the Hubstaff API
            hubstaff:write: Write access to the Hubstaff API
    personalAccessToken:
      type: http
      scheme: bearer
      description: Access token obtained by exchanging a personal access token (created at https://developer.hubstaff.com/personal_access_tokens) via the OAuth 2.0 refresh token grant at https://account.hubstaff.com/access_tokens. PATs expire after 90 days.
externalDocs:
  description: Hubstaff API v2 reference (interactive)
  url: https://developer.hubstaff.com/docs/hubstaff_v2