# Productive API > Productive is a Professional Services Automation platform. This file is the complete resource map following https://llmstxt.org. Each entry below is a filtered OpenAPI spec URL containing full schemas, parameters, and examples for that resource group. Base URL: https://api.productive.io/api/v2/ ## Auth (required on every request) X-Auth-Token: {token} (Settings → API integrations → Generate new token) X-Organization-Id: {org_id} (numeric, from your Productive URL) Content-Type: application/vnd.api+json (required on POST/PATCH/DELETE) 401 = unauthenticated | 403 = unauthorized ## OpenAPI Spec Full YAML: https://developer.productive.io/reference/download_spec Full JSON: https://developer.productive.io/reference/download_spec?format=json Filter params — append any combination to the spec URL: ?category={slug} all endpoints in a category ?group={slug} all endpoints for one resource ?path=/api/v2/tasks all methods on a path ?path=/api/v2/tasks&method=post single operation ## Resource Groups ### Organization custom-domains: https://developer.productive.io/reference/download_spec?group=custom-domains invitations: https://developer.productive.io/reference/download_spec?group=invitations organization-memberships: https://developer.productive.io/reference/download_spec?group=organization-memberships organizations: https://developer.productive.io/reference/download_spec?group=organizations permission-sets: https://developer.productive.io/reference/download_spec?group=permission-sets sessions: https://developer.productive.io/reference/download_spec?group=sessions subsidiaries: https://developer.productive.io/reference/download_spec?group=subsidiaries users: https://developer.productive.io/reference/download_spec?group=users ### Core Resources activities: https://developer.productive.io/reference/download_spec?group=activities approval-policy: https://developer.productive.io/reference/download_spec?group=approval-policy approval-policy-assignment: https://developer.productive.io/reference/download_spec?group=approval-policy-assignment approval-workflow: https://developer.productive.io/reference/download_spec?group=approval-workflow attachments: https://developer.productive.io/reference/download_spec?group=attachments comments: https://developer.productive.io/reference/download_spec?group=comments custom-field-options: https://developer.productive.io/reference/download_spec?group=custom-field-options custom-fields: https://developer.productive.io/reference/download_spec?group=custom-fields custom-field-section: https://developer.productive.io/reference/download_spec?group=custom-field-section emails: https://developer.productive.io/reference/download_spec?group=emails memberships: https://developer.productive.io/reference/download_spec?group=memberships notifications: https://developer.productive.io/reference/download_spec?group=notifications team-memberships: https://developer.productive.io/reference/download_spec?group=team-memberships teams: https://developer.productive.io/reference/download_spec?group=teams ### Projects projects: https://developer.productive.io/reference/download_spec?group=projects ### Tasks folders: https://developer.productive.io/reference/download_spec?group=folders taskdependency: https://developer.productive.io/reference/download_spec?group=taskdependency task-lists: https://developer.productive.io/reference/download_spec?group=task-lists tasks: https://developer.productive.io/reference/download_spec?group=tasks todos: https://developer.productive.io/reference/download_spec?group=todos workflows: https://developer.productive.io/reference/download_spec?group=workflows workflow-statuses: https://developer.productive.io/reference/download_spec?group=workflow-statuses ### Docs discussions: https://developer.productive.io/reference/download_spec?group=discussions pages: https://developer.productive.io/reference/download_spec?group=pages pageversions: https://developer.productive.io/reference/download_spec?group=pageversions ### Forms survey-field-options: https://developer.productive.io/reference/download_spec?group=survey-field-options survey-fields: https://developer.productive.io/reference/download_spec?group=survey-fields survey-responses: https://developer.productive.io/reference/download_spec?group=survey-responses surveys: https://developer.productive.io/reference/download_spec?group=surveys ### Time Tracking time-entries: https://developer.productive.io/reference/download_spec?group=time-entries time-entries-bulk: https://developer.productive.io/reference/download_spec?group=time-entries-bulk time-entry-versions: https://developer.productive.io/reference/download_spec?group=time-entry-versions timers: https://developer.productive.io/reference/download_spec?group=timers timesheets: https://developer.productive.io/reference/download_spec?group=timesheets time-tracking-policies: https://developer.productive.io/reference/download_spec?group=time-tracking-policies ### Financials bankaccounts: https://developer.productive.io/reference/download_spec?group=bankaccounts bills: https://developer.productive.io/reference/download_spec?group=bills contracts: https://developer.productive.io/reference/download_spec?group=contracts deal-cost-rates: https://developer.productive.io/reference/download_spec?group=deal-cost-rates deals: https://developer.productive.io/reference/download_spec?group=deals document-styles: https://developer.productive.io/reference/download_spec?group=document-styles document-types: https://developer.productive.io/reference/download_spec?group=document-types exchange-rates: https://developer.productive.io/reference/download_spec?group=exchange-rates expenses: https://developer.productive.io/reference/download_spec?group=expenses expenses-bulk: https://developer.productive.io/reference/download_spec?group=expenses-bulk overheads: https://developer.productive.io/reference/download_spec?group=overheads prices: https://developer.productive.io/reference/download_spec?group=prices proposals: https://developer.productive.io/reference/download_spec?group=proposals purchase-orders: https://developer.productive.io/reference/download_spec?group=purchase-orders purchase-orders-bulk: https://developer.productive.io/reference/download_spec?group=purchase-orders-bulk rate-cards: https://developer.productive.io/reference/download_spec?group=rate-cards revenue-distributions: https://developer.productive.io/reference/download_spec?group=revenue-distributions salaries: https://developer.productive.io/reference/download_spec?group=salaries sections: https://developer.productive.io/reference/download_spec?group=sections service-assignments: https://developer.productive.io/reference/download_spec?group=service-assignments services: https://developer.productive.io/reference/download_spec?group=services service-type-assignments: https://developer.productive.io/reference/download_spec?group=service-type-assignments service-types: https://developer.productive.io/reference/download_spec?group=service-types taxrates: https://developer.productive.io/reference/download_spec?group=taxrates ### Invoicing automatic-invoicing-rules: https://developer.productive.io/reference/download_spec?group=automatic-invoicing-rules e-invoice-identities: https://developer.productive.io/reference/download_spec?group=e-invoice-identities e-invoice-transactions: https://developer.productive.io/reference/download_spec?group=e-invoice-transactions invoice-attributions: https://developer.productive.io/reference/download_spec?group=invoice-attributions invoices: https://developer.productive.io/reference/download_spec?group=invoices invoice-templates: https://developer.productive.io/reference/download_spec?group=invoice-templates kpd-codes: https://developer.productive.io/reference/download_spec?group=kpd-codes line-items: https://developer.productive.io/reference/download_spec?group=line-items line-items-bulk: https://developer.productive.io/reference/download_spec?group=line-items-bulk payment-reminder-sequences: https://developer.productive.io/reference/download_spec?group=payment-reminder-sequences payments: https://developer.productive.io/reference/download_spec?group=payments ### Resource Management bookings: https://developer.productive.io/reference/download_spec?group=bookings entitlements: https://developer.productive.io/reference/download_spec?group=entitlements events: https://developer.productive.io/reference/download_spec?group=events holiday-calendars: https://developer.productive.io/reference/download_spec?group=holiday-calendars holidays: https://developer.productive.io/reference/download_spec?group=holidays placeholders: https://developer.productive.io/reference/download_spec?group=placeholders placeholder-usages: https://developer.productive.io/reference/download_spec?group=placeholder-usages ### CRM companies: https://developer.productive.io/reference/download_spec?group=companies contact-entries: https://developer.productive.io/reference/download_spec?group=contact-entries deal-statuses: https://developer.productive.io/reference/download_spec?group=deal-statuses lost-reasons: https://developer.productive.io/reference/download_spec?group=lost-reasons people: https://developer.productive.io/reference/download_spec?group=people pipelines: https://developer.productive.io/reference/download_spec?group=pipelines ### Reporting dashboards: https://developer.productive.io/reference/download_spec?group=dashboards pulses: https://developer.productive.io/reference/download_spec?group=pulses report-category: https://developer.productive.io/reference/download_spec?group=report-category reports: https://developer.productive.io/reference/download_spec?group=reports widgets: https://developer.productive.io/reference/download_spec?group=widgets ## Conventions Format: JSON:API — body: {"data":{"type":"tasks","attributes":{},"relationships":{}}} Filter: ?filter[field]=value e.g. ?filter[assignee_id]=42 Paginate: ?page[number]=1&page[size]=30 (max 200) Sort: ?sort=name or ?sort=-name (descending) Rate: 100 req/10s, 4000 req/30min; reports: 10 req/30s; HTTP 429 on excess ## Create a task curl -X POST https://api.productive.io/api/v2/tasks \ -H "X-Auth-Token: TOKEN" -H "X-Organization-Id: ORG_ID" \ -H "Content-Type: application/vnd.api+json" \ -d '{"data":{"type":"tasks","attributes":{"title":"My task"},"relationships":{"task_list":{"data":{"type":"task_lists","id":"123"}}}}}' ## Log time (time in minutes; requires person_id + service_id) curl -X POST https://api.productive.io/api/v2/time_entries \ -H "X-Auth-Token: TOKEN" -H "X-Organization-Id: ORG_ID" \ -H "Content-Type: application/vnd.api+json" \ -d '{"data":{"type":"time_entries","attributes":{"date":"2024-01-15","time":60},"relationships":{"person":{"data":{"type":"people","id":"456"}},"service":{"data":{"type":"services","id":"789"}}}}}' Time entry fields: https://developer.productive.io/reference/download_spec?group=time-entries Changelog: https://developer.productive.io/reference/changelog ## Guides ### Overview URL: https://developer.productive.io/guides/overview API endpoint is https://api.productive.io/api/v2/ This API is implemented according to [JSON API spec](https://jsonapi.org/). #### Authorization URL: https://developer.productive.io/guides/authorization To authorize yourself, add your API token to the **X-Auth-Token** header for every request. API token can be generated using Productive application, navigating to **Settings** -> **API integrations** -> **Generate new token** To access your organization data, add your organization ID to the **X-Organization-Id** header for every request. Most resources have authorization on them. If successfully authorized, you will get a response containing the resource. However, if you aren't authorized then you will be given HTTP status of 403, and an error message. ### Document Format URL: https://developer.productive.io/guides/document-format The Productive Document Format describes the elements supported in rich text fields like `pages.body`. It defines what you can write through the Markdown and HTML proxy endpoints documented in [Importing Docs via API](https://developer.productive.io/importing_docs_via_api.html). It's currently used in the following resources: | Resource | Property | Description | | -------- | -------- | ----------- | | `pages` | `body` | Productive Docs are represented by the `pages` resource and its `body` is written and read in this format | ### How content is sent The content shown in this guide goes into the `markdown` or `html` field of a proxy endpoint request. For example, to append the content to a page: Markdown path: ```json PATCH /api/v2/pages/:id/append_markdown { "markdown": "## Daily standup\n\n- Build is green" } ``` HTML path: ```json PATCH /api/v2/pages/:id/append_html { "html": "
Hello world.
Centered text.
``` **Blockquote** Markdown: `> Hello world` HTML: `` **Heading** Three levels are supported. Markdown: `#`, `##`, `###`. HTML: `Hello world
puts 'hello'
```
**Ordered list**
Markdown: `1. item`. HTML: `