# Worksome API Documentation > Last updated: 2026-11-13 > Worksome is a Freelancer Management System (FMS). This documentation covers the Worksome GraphQL API, webhooks, and integrations. ## API Overview - Base URL: https://api.worksome.com/graphql - Protocol: GraphQL over HTTPS - Auth: Bearer token via Personal Access Token (PAT) or OAuth 2.0 - Request format: POST with JSON body containing `query` and `variables` - Response format: JSON with `data` and optional `errors` array ## Entity Model The core entities and their relationships: - Company: An organization that hires workers. A user may have access to multiple companies via accounts. - Hire: The engagement of a worker by a company. Central entity connecting most operations. - Contract: The terms of a hire (rate, dates, currency). A hire may have multiple contracts over time. - Worker: A freelancer or contractor. Workers are accessed through hires, not via a top-level query. - Invoice: A billing document for work performed under a contract. - Job: A job posting that workers can be hired for. - Compliance: Verification and regulatory checks on hires (gates, actions, classification). - Trusted Contact: A worker's profile data in relation to a specific client/company. ## Capabilities ### Queries (read operations) - viewer: Get authenticated user info and account list - hires: List/get hires with filters (status, company, dates) - contracts: List/get contracts with filters (status, currency) - invoices: List/get invoices with filters (status, currency, dates) - jobs: List/get job postings - compliance: Check compliance status, gates, and classification for a hire - paymentRequests: List payment requests ### Mutations (write operations) - createDraftHire: Create a new hire (also creates a draft contract) - createJob: Create a job posting - approvePaymentRequest: Approve a pending payment - terminateHire: End a hire early - cancelHire: Cancel a hire ### Webhooks (outbound events) - contractAccepted: A worker accepted a contract - hireUpdated: A hire or its related objects changed - hireCancelled: A hire was cancelled - hireEnded: A hire reached its planned end date - hireTerminated: A hire was terminated early - trustedContactUpdated: A trusted contact's data changed - classificationAccepted: A company accepted a worker classification ## Integration Methods - [GraphQL API](https://docs.worksome.com/graphql): Full programmatic access (Developer, OAuth/PAT) - [Webhooks](https://docs.worksome.com/webhooks): Real-time event notifications (Developer, HMAC) - [CLI](https://docs.worksome.com/integrations/cli): Command-line with broad API coverage, 170+ operations (Developer/AI, PAT) - [PHP SDK](https://docs.worksome.com/integrations/php-sdk): PHP wrapper with helpers (PHP Developer, PAT) - [Zapier](https://docs.worksome.com/integrations/zapier): No-code automation; triggers and actions are listed on the Zapier app page (Non-technical, OAuth) - [MCP Server](https://docs.worksome.com/integrations/mcp-server): AI assistant integration, early access — request access (AI Agent, OAuth 2.0 or PAT) - [AI Agents](https://docs.worksome.com/integrations/ai-agents): AI-ready documentation (llms.txt, llms-full.txt) and agent integration guide - [Integration Options](https://docs.worksome.com/integrations): Decision guide for choosing the right method ## Machine-Readable Resources - [llms.txt](https://docs.worksome.com/llms.txt): This file — API overview for AI context windows - [llms-full.txt](https://docs.worksome.com/llms-full.txt): Complete documentation content for full AI ingestion - [GraphQL Schema (JSON)](https://docs.worksome.com/schema.json): Full introspection schema - [GraphQL Endpoint](https://api.worksome.com/graphql): Live API endpoint (requires auth) ## Key Concepts - **Hires**: The central entity. A hire represents the engagement of a worker by a company. Most operations revolve around hires. - **Workers**: Freelancers and contractors. A worker belongs to a company through a hire, which has one or more contracts. - **Companies**: Organizations that hire workers. A user accesses companies via accounts. - **Contracts**: The terms of a hire (rate, dates, currency). A hire may have multiple contracts over time (e.g., renewals, rate changes). - **Invoices**: Billing documents for work performed under a contract. - **Compliance**: Verification and regulatory checks on hires (classification, gates, actions). - **Trusted Contacts**: A worker's profile data scoped to a specific company relationship. ## Documentation - [Authentication](https://docs.worksome.com/authentication): Authentication with the API. - [Changelog](https://docs.worksome.com/changelog): Changes to the Worksome API. - [Error Reference](https://docs.worksome.com/errors): Worksome API error codes, shapes, and resolution steps - [Getting Started](https://docs.worksome.com/graphql): Getting started with the Worksome API. - [Error Handling](https://docs.worksome.com/graphql/guides/error-handling): How to handle errors from the Worksome GraphQL API - [Introduction to GraphQL](https://docs.worksome.com/graphql/guides/introduction): An introduction to GraphQL, its terminology, and how to use it. - [Pagination & Filtering](https://docs.worksome.com/graphql/guides/pagination): How to paginate and filter results in the Worksome GraphQL API - [Rate Limiting](https://docs.worksome.com/graphql/guides/rate-limiting): Understanding rate limits in the Worksome GraphQL API - [Enums](https://docs.worksome.com/graphql/reference/enums): Enums represent possible sets of values for a field. - [Input Objects](https://docs.worksome.com/graphql/reference/input-objects): Input objects can be described as "composable objects" because they include a set of input fields that define the object. - [Interfaces](https://docs.worksome.com/graphql/reference/interfaces): Interfaces serve as parent objects from which other objects can inherit. - [Mutations](https://docs.worksome.com/graphql/reference/mutations): The mutation type defines GraphQL operations that change data on the server. - [Objects](https://docs.worksome.com/graphql/reference/objects): Objects in GraphQL represent the resources you can access. - [Queries](https://docs.worksome.com/graphql/reference/queries): The query type defines GraphQL operations that retrieve data from the server. - [Scalars](https://docs.worksome.com/graphql/reference/scalars): Scalars are primitive values Int, Float, String, Boolean, or ID. - [Unions](https://docs.worksome.com/graphql/reference/unions): A union is a type of object representing many objects. - [Integration Options](https://docs.worksome.com/integrations): Overview of all integration methods for connecting with the Worksome platform. - [AI Agents](https://docs.worksome.com/integrations/ai-agents): Machine-readable documentation and integration options for LLMs and AI agents. - [CLI](https://docs.worksome.com/integrations/cli): Command-line interface for the Worksome GraphQL API. - [MCP Server](https://docs.worksome.com/integrations/mcp-server): Model Context Protocol server for AI agent integration with Worksome - [PHP SDK](https://docs.worksome.com/integrations/php-sdk): The Worksome Software Development Kit (SDK) for PHP. - [Timesheet Integration](https://docs.worksome.com/integrations/timesheet-integration): Submit externally-captured timesheet data to Worksome to automate working hours registration and payment request creation for your workers. - [Zapier](https://docs.worksome.com/integrations/zapier): Connect Worksome to thousands of apps with the official Zapier integration. - [Support](https://docs.worksome.com/support): Help and support when using the API. - [Getting Started](https://docs.worksome.com/webhooks): Getting started with the Worksome Webhooks. - [Handle Webhooks](https://docs.worksome.com/webhooks/guides/handle-webhooks): How to set up and handle Worksome webhook events in your application - [Introduction to Webhooks](https://docs.worksome.com/webhooks/guides/introduction): An introduction to Webhooks and their terminology, and how to use them. - [Webhook Events](https://docs.worksome.com/webhooks/reference): Introduces Webhook Events and links to each event available. - [Webhook Events | Classification Accepted](https://docs.worksome.com/webhooks/reference/events/classification-accepted): Classification Accepted Webhook Event. - [Webhook Events | Contract Accepted](https://docs.worksome.com/webhooks/reference/events/contract-accepted): Contract Accepted Webhook Event. - [Webhook Events | Hire Cancelled](https://docs.worksome.com/webhooks/reference/events/hire-cancelled): Hire Cancelled Webhook Event. - [Webhook Events | Hire Ended](https://docs.worksome.com/webhooks/reference/events/hire-ended): Hire Ended Webhook Event. - [Webhook Events | Hire Terminated](https://docs.worksome.com/webhooks/reference/events/hire-terminated): Hire Terminated Webhook Event. - [Webhook Events | Hire Updated](https://docs.worksome.com/webhooks/reference/events/hire-updated): Hire Updated Webhook Event. - [Webhook Events | Invoices and Credit Notes](https://docs.worksome.com/webhooks/reference/events/invoices): Payload for the invoice and credit note webhook events. - [Webhook Events | Payment Requests](https://docs.worksome.com/webhooks/reference/events/payment-requests): Payload for the seven payment request webhook events. - [Webhook Events | Trusted Contact Updated](https://docs.worksome.com/webhooks/reference/events/trusted-contact-updated): Trusted Contact Updated Webhook Event.