{"openapi":"3.1.0","info":{"title":"Raoura API","version":"1.1.0","description":"Clients, projects, proposals, contracts, invoices, time and expenses for one Raoura account. Authenticate with an API key from Settings > API as `Authorization: Bearer rk_...`; the key decides the account. Money is integer cents. Lists page with `cursor`, and `updated_since` returns everything created or changed since a time, for sync. Every response carries x-request-id, and x-ratelimit-* headers when limits apply. Integrations prepare work; sending documents needs an explicit per-key grant, and nothing can accept, sign, charge or record a payment."},"servers":[{"url":"https://www.raoura.com/api/v1"}],"security":[{"bearer":[]},{"oauth2":[]}],"tags":[{"name":"Account"},{"name":"Clients"},{"name":"Projects"},{"name":"Proposals"},{"name":"Contracts"},{"name":"Invoices"},{"name":"Payments"},{"name":"Time and expenses"},{"name":"Webhooks"},{"name":"Sync"}],"paths":{"/clients":{"get":{"tags":["Clients"],"operationId":"list_clients","summary":"List clients","description":"Newest first, or oldest change first with updated_since. Any key.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page."},{"name":"updated_since","in":"query","schema":{"type":"string"},"description":"Incremental sync. Rows created or changed at or after this time (YYYY-MM-DD or ISO-8601), oldest change first. Store the updated_at of the last row you saw and pass it next run."},{"name":"created_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"created_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"stage","in":"query","schema":{"type":"string","enum":["lead","active","past"]}}],"responses":{"200":{"description":"One page.","content":{"application/json":{"schema":{"type":"object","required":["data","has_more","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Client"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"],"description":"Pass as ?cursor= for the next page. Null on the last page."}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"tags":["Clients"],"operationId":"create_client","summary":"Create a client","description":"Needs a read_write key.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Retry safely: a repeat within 24 hours replays the first response instead of creating again."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"email":{"anyOf":[{"anyOf":[{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},{"type":"string","const":""}]},"company":{"anyOf":[{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]},{"type":"string","const":""}]},"address":{"anyOf":[{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}]},{"type":"string","const":""}]},"phone":{"anyOf":[{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},{"type":"string","const":""}]},"tax_id":{"anyOf":[{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]},{"type":"string","const":""}]},"notes":{"anyOf":[{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},{"type":"string","const":""}]},"color":{"anyOf":[{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},{"type":"string","const":""}]}},"required":["name"]}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/clients/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The client id."}],"get":{"tags":["Clients"],"operationId":"get_client","summary":"Get one client","description":"Any key.","responses":{"200":{"description":"The client.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"patch":{"tags":["Clients"],"operationId":"update_client","summary":"Update a client","description":"Send only the fields to change. Needs a read_write key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"email":{"anyOf":[{"anyOf":[{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},{"type":"string","const":""}]},"company":{"anyOf":[{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]},{"type":"string","const":""}]},"address":{"anyOf":[{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}]},{"type":"string","const":""}]},"phone":{"anyOf":[{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},{"type":"string","const":""}]},"tax_id":{"anyOf":[{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]},{"type":"string","const":""}]},"notes":{"anyOf":[{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},{"type":"string","const":""}]},"color":{"anyOf":[{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},{"type":"string","const":""}]}}}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/invoices":{"get":{"tags":["Invoices"],"operationId":"list_invoices","summary":"List invoices","description":"Newest first, or oldest change first with updated_since. Any key.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page."},{"name":"updated_since","in":"query","schema":{"type":"string"},"description":"Incremental sync. Rows created or changed at or after this time (YYYY-MM-DD or ISO-8601), oldest change first. Store the updated_at of the last row you saw and pass it next run."},{"name":"created_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"created_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"status","in":"query","schema":{"type":"string","enum":["draft","sent","paid","overdue","void"]}},{"name":"client_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"issue_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD."},{"name":"issue_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD."},{"name":"due_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD."},{"name":"due_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD."}],"responses":{"200":{"description":"One page.","content":{"application/json":{"schema":{"type":"object","required":["data","has_more","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Invoice"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"],"description":"Pass as ?cursor= for the next page. Null on the last page."},"currency":{"type":"string","description":"ISO 4217 code all amounts are in."}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"tags":["Invoices"],"operationId":"create_invoice","summary":"Create a draft invoice (totals computed from the lines)","description":"Needs a read_write key.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Retry safely: a repeat within 24 hours replays the first response instead of creating again."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"issue_date":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","format":"date"},"due_date":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","format":"date"},"tax_rate":{"default":0,"type":"number","minimum":0,"maximum":100},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"items":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"description":{"type":"string","minLength":1,"maxLength":500},"quantity":{"type":"number","exclusiveMinimum":0,"maximum":1000000},"unit_price":{"type":"integer","minimum":0,"maximum":1000000000}},"required":["description","quantity","unit_price"]}}},"required":["client_id","issue_date","due_date","items"]}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/invoices/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The invoice id."}],"get":{"tags":["Invoices"],"operationId":"get_invoice","summary":"Get one invoice","description":"Any key.","responses":{"200":{"description":"The invoice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"patch":{"tags":["Invoices"],"operationId":"update_invoice","summary":"Edit a draft invoice (409 once sent)","description":"Send only the fields to change. Needs a read_write key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"issue_date":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","format":"date"},"due_date":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","format":"date"},"tax_rate":{"type":"number","minimum":0,"maximum":100},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"items":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"description":{"type":"string","minLength":1,"maxLength":500},"quantity":{"type":"number","exclusiveMinimum":0,"maximum":1000000},"unit_price":{"type":"integer","minimum":0,"maximum":1000000000}},"required":["description","quantity","unit_price"]}}},"additionalProperties":false}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/payments":{"get":{"tags":["Payments"],"operationId":"list_payments","summary":"List payments","description":"Newest first, or oldest change first with updated_since. Any key.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page."},{"name":"updated_since","in":"query","schema":{"type":"string"},"description":"Incremental sync. Rows created or changed at or after this time (YYYY-MM-DD or ISO-8601), oldest change first. Store the updated_at of the last row you saw and pass it next run."},{"name":"created_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"created_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"invoice_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"paid_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"paid_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."}],"responses":{"200":{"description":"One page.","content":{"application/json":{"schema":{"type":"object","required":["data","has_more","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Payment"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"],"description":"Pass as ?cursor= for the next page. Null on the last page."}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/payments/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The payment id."}],"get":{"tags":["Payments"],"operationId":"get_payment","summary":"Get one payment","description":"Any key.","responses":{"200":{"description":"The payment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Payment"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/projects":{"get":{"tags":["Projects"],"operationId":"list_projects","summary":"List projects","description":"Newest first, or oldest change first with updated_since. Any key.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page."},{"name":"updated_since","in":"query","schema":{"type":"string"},"description":"Incremental sync. Rows created or changed at or after this time (YYYY-MM-DD or ISO-8601), oldest change first. Store the updated_at of the last row you saw and pass it next run."},{"name":"created_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"created_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"status","in":"query","schema":{"type":"string","enum":["active","completed","archived"]}},{"name":"client_id","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"One page.","content":{"application/json":{"schema":{"type":"object","required":["data","has_more","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Project"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"],"description":"Pass as ?cursor= for the next page. Null on the last page."}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"tags":["Projects"],"operationId":"create_project","summary":"Create a project with milestones","description":"Needs a read_write key.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Retry safely: a repeat within 24 hours replays the first response instead of creating again."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":1,"maxLength":200},"milestones":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"scope":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"amount":{"type":"integer","minimum":0,"maximum":1000000000},"due_date":{"anyOf":[{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","format":"date"},{"type":"null"}]},"payable_upfront":{"default":false,"type":"boolean"}},"required":["title","amount"]}}},"required":["client_id","title"]}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/projects/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The project id."}],"get":{"tags":["Projects"],"operationId":"get_project","summary":"Get one project","description":"Any key.","responses":{"200":{"description":"The project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"patch":{"tags":["Projects"],"operationId":"update_project","summary":"Update a project","description":"Send only the fields to change. Needs a read_write key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"welcome_message":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"status":{"type":"string","enum":["active","completed","archived"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/milestones":{"get":{"tags":["Projects"],"operationId":"list_milestones","summary":"List milestones","description":"Newest first, or oldest change first with updated_since. Any key.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page."},{"name":"updated_since","in":"query","schema":{"type":"string"},"description":"Incremental sync. Rows created or changed at or after this time (YYYY-MM-DD or ISO-8601), oldest change first. Store the updated_at of the last row you saw and pass it next run."},{"name":"created_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"created_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"project_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","schema":{"type":"string","enum":["pending","submitted","changes_requested","approved"]}},{"name":"due_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD."},{"name":"due_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD."}],"responses":{"200":{"description":"One page.","content":{"application/json":{"schema":{"type":"object","required":["data","has_more","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Milestone"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"],"description":"Pass as ?cursor= for the next page. Null on the last page."}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/milestones/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The milestone id."}],"get":{"tags":["Projects"],"operationId":"get_milestone","summary":"Get one milestone","description":"Any key.","responses":{"200":{"description":"The milestone.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Milestone"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/tasks":{"get":{"tags":["Projects"],"operationId":"list_tasks","summary":"List tasks","description":"Newest first, or oldest change first with updated_since. Any key.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page."},{"name":"updated_since","in":"query","schema":{"type":"string"},"description":"Incremental sync. Rows created or changed at or after this time (YYYY-MM-DD or ISO-8601), oldest change first. Store the updated_at of the last row you saw and pass it next run."},{"name":"created_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"created_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"project_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"done","in":"query","schema":{"type":"string","enum":["true","false"]}},{"name":"due_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD."},{"name":"due_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD."}],"responses":{"200":{"description":"One page.","content":{"application/json":{"schema":{"type":"object","required":["data","has_more","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Task"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"],"description":"Pass as ?cursor= for the next page. Null on the last page."}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"tags":["Projects"],"operationId":"create_task","summary":"Add a task to a project","description":"Needs a read_write key.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Retry safely: a repeat within 24 hours replays the first response instead of creating again."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"project_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":1,"maxLength":300},"due_date":{"anyOf":[{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","format":"date"},{"type":"null"}]}},"required":["project_id","title"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/tasks/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The task id."}],"get":{"tags":["Projects"],"operationId":"get_task","summary":"Get one task","description":"Any key.","responses":{"200":{"description":"The task.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"patch":{"tags":["Projects"],"operationId":"update_task","summary":"Update a task","description":"Send only the fields to change. Needs a read_write key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":300},"done":{"type":"boolean"},"due_date":{"anyOf":[{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","format":"date"},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"delete":{"tags":["Projects"],"operationId":"delete_task","summary":"Delete a task","description":"Needs a read_write key.","responses":{"204":{"description":"Deleted."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/proposals":{"get":{"tags":["Proposals"],"operationId":"list_proposals","summary":"List proposals","description":"Newest first, or oldest change first with updated_since. Any key.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page."},{"name":"updated_since","in":"query","schema":{"type":"string"},"description":"Incremental sync. Rows created or changed at or after this time (YYYY-MM-DD or ISO-8601), oldest change first. Store the updated_at of the last row you saw and pass it next run."},{"name":"created_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"created_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"status","in":"query","schema":{"type":"string","enum":["draft","sent","viewed","accepted","declined"]}},{"name":"client_id","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"One page.","content":{"application/json":{"schema":{"type":"object","required":["data","has_more","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Proposal"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"],"description":"Pass as ?cursor= for the next page. Null on the last page."}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"tags":["Proposals"],"operationId":"create_proposal","summary":"Create a draft proposal","description":"Needs a read_write key granted proposals:write.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Retry safely: a repeat within 24 hours replays the first response instead of creating again."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":1,"maxLength":200},"summary":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"content":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"out_of_scope":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"deposit_amount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"items":{"default":[],"maxItems":50,"type":"array","items":{"type":"object","properties":{"description":{"type":"string","minLength":1,"maxLength":500},"amount":{"type":"integer","minimum":0,"maximum":1000000000},"is_optional":{"default":false,"type":"boolean"}},"required":["description","amount"]}}},"required":["client_id","title"]}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/proposals/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The proposal id."}],"get":{"tags":["Proposals"],"operationId":"get_proposal","summary":"Get one proposal","description":"Any key.","responses":{"200":{"description":"The proposal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"patch":{"tags":["Proposals"],"operationId":"update_proposal","summary":"Edit a draft proposal (409 once sent)","description":"Send only the fields to change. Needs a read_write key granted proposals:write.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"summary":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"content":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"out_of_scope":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"deposit_amount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"items":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"description":{"type":"string","minLength":1,"maxLength":500},"amount":{"type":"integer","minimum":0,"maximum":1000000000},"is_optional":{"default":false,"type":"boolean"}},"required":["description","amount"]}}},"additionalProperties":false}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/contracts":{"get":{"tags":["Contracts"],"operationId":"list_contracts","summary":"List contracts","description":"Newest first, or oldest change first with updated_since. Any key.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page."},{"name":"updated_since","in":"query","schema":{"type":"string"},"description":"Incremental sync. Rows created or changed at or after this time (YYYY-MM-DD or ISO-8601), oldest change first. Store the updated_at of the last row you saw and pass it next run."},{"name":"created_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"created_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"status","in":"query","schema":{"type":"string","enum":["draft","sent","viewed","signed","void"]}},{"name":"client_id","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"One page.","content":{"application/json":{"schema":{"type":"object","required":["data","has_more","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Contract"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"],"description":"Pass as ?cursor= for the next page. Null on the last page."}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"tags":["Contracts"],"operationId":"create_contract","summary":"Create a draft contract","description":"Needs a read_write key granted contracts:write.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Retry safely: a repeat within 24 hours replays the first response instead of creating again."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":1,"maxLength":200},"content":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}]},"proposal_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["client_id","title"]}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/contracts/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The contract id."}],"get":{"tags":["Contracts"],"operationId":"get_contract","summary":"Get one contract","description":"Any key.","responses":{"200":{"description":"The contract.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"patch":{"tags":["Contracts"],"operationId":"update_contract","summary":"Edit a draft contract (409 once sent)","description":"Send only the fields to change. Needs a read_write key granted contracts:write.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"content":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractDetail"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/time_entries":{"get":{"tags":["Time and expenses"],"operationId":"list_time_entries","summary":"List time entrys","description":"Newest first, or oldest change first with updated_since. Any key.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page."},{"name":"updated_since","in":"query","schema":{"type":"string"},"description":"Incremental sync. Rows created or changed at or after this time (YYYY-MM-DD or ISO-8601), oldest change first. Store the updated_at of the last row you saw and pass it next run."},{"name":"created_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"created_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"client_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"project_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"invoice_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"billable","in":"query","schema":{"type":"string","enum":["true","false"]}},{"name":"spent_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD."},{"name":"spent_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD."}],"responses":{"200":{"description":"One page.","content":{"application/json":{"schema":{"type":"object","required":["data","has_more","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TimeEntry"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"],"description":"Pass as ?cursor= for the next page. Null on the last page."}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"tags":["Time and expenses"],"operationId":"create_time_entry","summary":"Log time","description":"Needs a read_write key.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Retry safely: a repeat within 24 hours replays the first response instead of creating again."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"project_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"spent_on":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","format":"date"},"minutes":{"type":"integer","minimum":1,"maximum":1440},"billable":{"type":"boolean"}},"required":["minutes"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntry"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/time_entries/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The time entry id."}],"get":{"tags":["Time and expenses"],"operationId":"get_time_entry","summary":"Get one time entry","description":"Any key.","responses":{"200":{"description":"The time entry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntry"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"patch":{"tags":["Time and expenses"],"operationId":"update_time_entry","summary":"Edit a time entry (409 once invoiced)","description":"Send only the fields to change. Needs a read_write key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"project_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"spent_on":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","format":"date"},"minutes":{"type":"integer","minimum":1,"maximum":1440},"billable":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntry"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"delete":{"tags":["Time and expenses"],"operationId":"delete_time_entry","summary":"Delete a time entry (409 once invoiced)","description":"Needs a read_write key.","responses":{"204":{"description":"Deleted."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/expenses":{"get":{"tags":["Time and expenses"],"operationId":"list_expenses","summary":"List expenses","description":"Newest first, or oldest change first with updated_since. Any key.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page."},{"name":"updated_since","in":"query","schema":{"type":"string"},"description":"Incremental sync. Rows created or changed at or after this time (YYYY-MM-DD or ISO-8601), oldest change first. Store the updated_at of the last row you saw and pass it next run."},{"name":"created_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"created_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"client_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"project_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"invoice_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"billable","in":"query","schema":{"type":"string","enum":["true","false"]}},{"name":"category","in":"query","schema":{"type":"string"}},{"name":"spent_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD."},{"name":"spent_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD."}],"responses":{"200":{"description":"One page.","content":{"application/json":{"schema":{"type":"object","required":["data","has_more","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Expense"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"],"description":"Pass as ?cursor= for the next page. Null on the last page."}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"tags":["Time and expenses"],"operationId":"create_expense","summary":"Record an expense","description":"Needs a read_write key.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Retry safely: a repeat within 24 hours replays the first response instead of creating again."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"project_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"spent_on":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","format":"date"},"amount":{"type":"integer","minimum":1,"maximum":1000000000},"category":{"type":"string","minLength":1,"maxLength":60},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"billable":{"type":"boolean"}},"required":["amount","category"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Expense"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/expenses/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The expense id."}],"get":{"tags":["Time and expenses"],"operationId":"get_expense","summary":"Get one expense","description":"Any key.","responses":{"200":{"description":"The expense.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Expense"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"patch":{"tags":["Time and expenses"],"operationId":"update_expense","summary":"Edit an expense (409 once invoiced)","description":"Send only the fields to change. Needs a read_write key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"project_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"spent_on":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","format":"date"},"amount":{"type":"integer","minimum":1,"maximum":1000000000},"category":{"type":"string","minLength":1,"maxLength":60},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"billable":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Expense"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"delete":{"tags":["Time and expenses"],"operationId":"delete_expense","summary":"Delete an expense (409 once invoiced)","description":"Needs a read_write key.","responses":{"204":{"description":"Deleted."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/deletions":{"get":{"tags":["Sync"],"operationId":"list_deletions","summary":"List deletions","description":"Records deleted in the last 90 days: resource (as the API names it) and record_id. Poll with updated_since alongside your other syncs and delete those ids on your side. Deleting a client or project also lists the rows that went with it. Any key.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page."},{"name":"updated_since","in":"query","schema":{"type":"string"},"description":"Incremental sync. Rows created or changed at or after this time (YYYY-MM-DD or ISO-8601), oldest change first. Store the updated_at of the last row you saw and pass it next run."},{"name":"created_from","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"created_to","in":"query","schema":{"type":"string"},"description":"Inclusive. YYYY-MM-DD (UTC day) or ISO-8601."},{"name":"resource","in":"query","schema":{"type":"string","enum":["clients","invoices","projects","milestones","proposals","contracts","time_entries","expenses","tasks"]}}],"responses":{"200":{"description":"One page.","content":{"application/json":{"schema":{"type":"object","required":["data","has_more","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DeletedRecord"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"],"description":"Pass as ?cursor= for the next page. Null on the last page."}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/projects/{id}/status":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The project id."}],"patch":{"tags":["Projects"],"operationId":"set_project_status","summary":"Set a project's status","description":"Same as PATCH /projects/{id} with only status. Needs a read_write key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["active","completed","archived"]}},"required":["status"]}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/proposals/{id}/send":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The proposal id."}],"post":{"tags":["Proposals"],"operationId":"send_proposal","summary":"Send a proposal to the client","description":"Marks it sent and emails the client, exactly like the Send button. Only a draft or an already-sent proposal can be sent; anything else is 409. Needs a read_write key granted proposals:send.","responses":{"200":{"description":"Sent.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"sent"},"emailed":{"type":"boolean"},"reason":{"type":"string"}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/contracts/{id}/send":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The contract id."}],"post":{"tags":["Contracts"],"operationId":"send_contract","summary":"Send a contract to the client","description":"Marks it sent and emails the client, exactly like the Send button. Only a draft or an already-sent contract can be sent; anything else is 409. Needs a read_write key granted contracts:send.","responses":{"200":{"description":"Sent.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"sent"},"emailed":{"type":"boolean"},"reason":{"type":"string"}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/webhooks":{"get":{"tags":["Webhooks"],"operationId":"list_webhooks","summary":"List webhook subscriptions","description":"Any key.","responses":{"200":{"description":"Subscriptions and the events available.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}},"events":{"type":"array","items":{"type":"string"}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"tags":["Webhooks"],"operationId":"create_webhook","summary":"Subscribe a URL to events","description":"Each delivery is a POST with x-raoura-event, x-raoura-timestamp and x-raoura-signature (hex HMAC-SHA256 of `${timestamp}.${body}` with the secret). The secret is returned once, here. Needs a read_write key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2000,"format":"uri"},"events":{"default":[],"maxItems":50,"type":"array","items":{"type":"string"}}},"required":["url"],"additionalProperties":false}}}},"responses":{"201":{"description":"Subscribed.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Webhook"},{"type":"object","properties":{"secret":{"type":"string"}}}]}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/webhooks/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The webhook id."}],"delete":{"tags":["Webhooks"],"operationId":"delete_webhook","summary":"Unsubscribe","description":"Needs a read_write key.","responses":{"204":{"description":"Deleted."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/me":{"get":{"tags":["Account"],"operationId":"get_me","summary":"The account and key behind this request","description":"Use it to test a connection. Any key.","responses":{"200":{"description":"Who you are.","content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"currency":{"type":"string"}}},"key":{"type":"object","properties":{"id":{"type":"string"},"scope":{"type":"string","enum":["read","read_write"]},"permissions":{"type":"array","items":{"type":"string","enum":["proposals:write","proposals:send","contracts:write","contracts:send"]}}}}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"An API key, rk_..."},"oauth2":{"type":"oauth2","description":"Sign in with Raoura (authorization code with PKCE). Accepted on this API only for integrations Raoura has approved, such as DataPipe; any app can use it on the MCP server. Connected apps cannot delete or send.","flows":{"authorizationCode":{"authorizationUrl":"https://gdqcuatwlevdiolvxusj.supabase.co/auth/v1/oauth/authorize","tokenUrl":"https://gdqcuatwlevdiolvxusj.supabase.co/auth/v1/oauth/token","refreshUrl":"https://gdqcuatwlevdiolvxusj.supabase.co/auth/v1/oauth/token","scopes":{}}}}},"responses":{"Error":{"description":"Every error has this shape. code is stable; message is for people.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","unauthorized","subscription_required","forbidden","not_found","conflict","rate_limited","server_error"]},"message":{"type":"string"}}}}},"Client":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"company":{"type":["string","null"]},"stage":{"type":["string","null"]},"tags":{"type":"array","items":{"type":"string"}},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"ClientDetail":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"company":{"type":["string","null"]},"address":{"type":["string","null"]},"phone":{"type":["string","null"]},"tax_id":{"type":["string","null"],"format":"uuid"},"notes":{"type":["string","null"]},"stage":{"type":["string","null"]},"tags":{"type":"array","items":{"type":"string"}},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"Invoice":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"number":{"type":["string","null"]},"client_id":{"type":["string","null"],"format":"uuid"},"status":{"type":["string","null"]},"issue_date":{"type":["string","null"],"format":"date"},"due_date":{"type":["string","null"],"format":"date"},"subtotal":{"type":["integer","null"],"description":"Integer cents in the account currency."},"discount":{"type":["integer","null"],"description":"Integer cents in the account currency."},"tax":{"type":["integer","null"],"description":"Integer cents in the account currency."},"total":{"type":["integer","null"],"description":"Integer cents in the account currency."},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"InvoiceDetail":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"number":{"type":["string","null"]},"client_id":{"type":["string","null"],"format":"uuid"},"status":{"type":["string","null"]},"issue_date":{"type":["string","null"],"format":"date"},"due_date":{"type":["string","null"],"format":"date"},"subtotal":{"type":["integer","null"],"description":"Integer cents in the account currency."},"tax_rate":{"type":["number","null"]},"tax":{"type":["integer","null"],"description":"Integer cents in the account currency."},"discount":{"type":["integer","null"],"description":"Integer cents in the account currency."},"total":{"type":["integer","null"],"description":"Integer cents in the account currency."},"notes":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"},"items":{"type":"array","items":{"type":"object","properties":{"description":{"type":["string","null"]},"quantity":{"type":["number","null"]},"unit_price":{"type":["integer","null"],"description":"Integer cents in the account currency."},"position":{"type":["integer","null"]}}}}}},"Payment":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"invoice_id":{"type":["string","null"],"format":"uuid"},"amount":{"type":["integer","null"],"description":"Integer cents in the account currency."},"method":{"type":["string","null"]},"paid_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"},"invoice":{"type":"object","properties":{"number":{"type":["string","null"]},"client_id":{"type":["string","null"],"format":"uuid"},"account_id":{"type":["string","null"],"format":"uuid"}}}}},"Project":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"client_id":{"type":["string","null"],"format":"uuid"},"title":{"type":["string","null"]},"status":{"type":["string","null"]},"viewed_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"ProjectDetail":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"client_id":{"type":["string","null"],"format":"uuid"},"title":{"type":["string","null"]},"status":{"type":["string","null"]},"welcome_message":{"type":["string","null"]},"viewed_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"},"milestones":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"position":{"type":["integer","null"]},"title":{"type":["string","null"]},"scope":{"type":["string","null"]},"amount":{"type":["integer","null"],"description":"Integer cents in the account currency."},"due_date":{"type":["string","null"],"format":"date"},"status":{"type":["string","null"]},"invoice_id":{"type":["string","null"],"format":"uuid"},"payable_upfront":{"type":"boolean"},"submitted_at":{"type":["string","null"],"format":"date-time"},"approved_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}}}}},"Milestone":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"project_id":{"type":["string","null"],"format":"uuid"},"position":{"type":["integer","null"]},"title":{"type":["string","null"]},"scope":{"type":["string","null"]},"amount":{"type":["integer","null"],"description":"Integer cents in the account currency."},"due_date":{"type":["string","null"],"format":"date"},"status":{"type":["string","null"]},"invoice_id":{"type":["string","null"],"format":"uuid"},"payable_upfront":{"type":"boolean"},"submitted_at":{"type":["string","null"],"format":"date-time"},"approved_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"Task":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"project_id":{"type":["string","null"],"format":"uuid"},"title":{"type":["string","null"]},"done":{"type":"boolean"},"due_date":{"type":["string","null"],"format":"date"},"position":{"type":["integer","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"Proposal":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"client_id":{"type":["string","null"],"format":"uuid"},"title":{"type":["string","null"]},"amount":{"type":["integer","null"],"description":"Integer cents in the account currency."},"deposit_amount":{"type":["integer","null"],"description":"Integer cents in the account currency."},"status":{"type":["string","null"]},"sent_at":{"type":["string","null"],"format":"date-time"},"viewed_at":{"type":["string","null"],"format":"date-time"},"accepted_at":{"type":["string","null"],"format":"date-time"},"declined_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"ProposalDetail":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"client_id":{"type":["string","null"],"format":"uuid"},"title":{"type":["string","null"]},"summary":{"type":["string","null"]},"content":{"type":["string","null"]},"out_of_scope":{"type":["string","null"]},"amount":{"type":["integer","null"],"description":"Integer cents in the account currency."},"deposit_amount":{"type":["integer","null"],"description":"Integer cents in the account currency."},"status":{"type":["string","null"]},"sent_at":{"type":["string","null"],"format":"date-time"},"viewed_at":{"type":["string","null"],"format":"date-time"},"accepted_at":{"type":["string","null"],"format":"date-time"},"declined_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"},"items":{"type":"array","items":{"type":"object","properties":{"description":{"type":["string","null"]},"amount":{"type":["integer","null"],"description":"Integer cents in the account currency."},"is_optional":{"type":"boolean"},"position":{"type":["integer","null"]}}}}}},"Contract":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"client_id":{"type":["string","null"],"format":"uuid"},"proposal_id":{"type":["string","null"],"format":"uuid"},"title":{"type":["string","null"]},"status":{"type":["string","null"]},"sent_at":{"type":["string","null"],"format":"date-time"},"viewed_at":{"type":["string","null"],"format":"date-time"},"signed_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"ContractDetail":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"client_id":{"type":["string","null"],"format":"uuid"},"proposal_id":{"type":["string","null"],"format":"uuid"},"title":{"type":["string","null"]},"content":{"type":["string","null"]},"status":{"type":["string","null"]},"sent_at":{"type":["string","null"],"format":"date-time"},"viewed_at":{"type":["string","null"],"format":"date-time"},"signed_at":{"type":["string","null"],"format":"date-time"},"signer_name":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"TimeEntry":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"client_id":{"type":["string","null"],"format":"uuid"},"project_id":{"type":["string","null"],"format":"uuid"},"description":{"type":["string","null"]},"spent_on":{"type":["string","null"],"format":"date"},"minutes":{"type":["integer","null"]},"billable":{"type":"boolean"},"rate":{"type":["integer","null"],"description":"Integer cents in the account currency."},"invoice_id":{"type":["string","null"],"format":"uuid"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"Expense":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"client_id":{"type":["string","null"],"format":"uuid"},"project_id":{"type":["string","null"],"format":"uuid"},"spent_on":{"type":["string","null"],"format":"date"},"amount":{"type":["integer","null"],"description":"Integer cents in the account currency."},"category":{"type":["string","null"]},"note":{"type":["string","null"]},"billable":{"type":"boolean"},"billed":{"type":"boolean"},"invoice_id":{"type":["string","null"],"format":"uuid"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"DeletedRecord":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid"},"resource":{"type":["string","null"]},"record_id":{"type":["string","null"],"format":"uuid"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"Webhook":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string","enum":["client.created","invoice.sent","invoice.paid","proposal.sent","contract.sent","proposal.accepted","contract.signed","lead.created","service.purchased","request.created","rating.received","booking.created","booking.cancelled"]}},"active":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"}}}}}}