{"openapi":"3.1.0","info":{"title":"Hyreflow CRM API","description":"The CRM's resources over REST. Every request takes a workspace API key: `Authorization: Bearer hf_live_...`.","version":"2"},"paths":{"/api/v2/candidates":{"get":{"tags":["CRM"],"summary":"List candidates","operationId":"handler_api_v2_candidates_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"next_cursor of the previous page","title":"Cursor"},"description":"next_cursor of the previous page"},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only records changed at or after this ISO 8601 time","title":"Updated Since"},"description":"Only records changed at or after this ISO 8601 time"},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}","title":"Filter"},"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"field:asc or field:desc","title":"Sort"},"description":"field:asc or field:desc"},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated, e.g. company,owner","title":"Expand"},"description":"Linked records to include, comma separated, e.g. company,owner"}],"responses":{"200":{"description":"A page of records","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Candidate"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["CRM"],"summary":"Create a candidate","operationId":"handler_api_v2_candidates_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Candidate"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Candidate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/candidates/{id}":{"get":{"tags":["CRM"],"summary":"Get a candidate","operationId":"handler_api_v2_candidates__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated","title":"Expand"},"description":"Linked records to include, comma separated"}],"responses":{"200":{"description":"The record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Candidate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["CRM"],"summary":"Update a candidate","operationId":"handler_api_v2_candidates__id__patch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Candidate"}}}},"responses":{"200":{"description":"The record after the change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Candidate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["CRM"],"summary":"Delete a candidate","operationId":"handler_api_v2_candidates__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/contacts":{"get":{"tags":["CRM"],"summary":"List contacts","operationId":"handler_api_v2_contacts_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"next_cursor of the previous page","title":"Cursor"},"description":"next_cursor of the previous page"},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only records changed at or after this ISO 8601 time","title":"Updated Since"},"description":"Only records changed at or after this ISO 8601 time"},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}","title":"Filter"},"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"field:asc or field:desc","title":"Sort"},"description":"field:asc or field:desc"},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated, e.g. company,owner","title":"Expand"},"description":"Linked records to include, comma separated, e.g. company,owner"}],"responses":{"200":{"description":"A page of records","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["CRM"],"summary":"Create a contact","operationId":"handler_api_v2_contacts_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/contacts/{id}":{"get":{"tags":["CRM"],"summary":"Get a contact","operationId":"handler_api_v2_contacts__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated","title":"Expand"},"description":"Linked records to include, comma separated"}],"responses":{"200":{"description":"The record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["CRM"],"summary":"Update a contact","operationId":"handler_api_v2_contacts__id__patch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"responses":{"200":{"description":"The record after the change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["CRM"],"summary":"Delete a contact","operationId":"handler_api_v2_contacts__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/companies":{"get":{"tags":["CRM"],"summary":"List companies","operationId":"handler_api_v2_companies_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"next_cursor of the previous page","title":"Cursor"},"description":"next_cursor of the previous page"},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only records changed at or after this ISO 8601 time","title":"Updated Since"},"description":"Only records changed at or after this ISO 8601 time"},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}","title":"Filter"},"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"field:asc or field:desc","title":"Sort"},"description":"field:asc or field:desc"},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated, e.g. company,owner","title":"Expand"},"description":"Linked records to include, comma separated, e.g. company,owner"}],"responses":{"200":{"description":"A page of records","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Company"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["CRM"],"summary":"Create a company","operationId":"handler_api_v2_companies_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/companies/{id}":{"get":{"tags":["CRM"],"summary":"Get a company","operationId":"handler_api_v2_companies__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated","title":"Expand"},"description":"Linked records to include, comma separated"}],"responses":{"200":{"description":"The record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["CRM"],"summary":"Update a company","operationId":"handler_api_v2_companies__id__patch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}}},"responses":{"200":{"description":"The record after the change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["CRM"],"summary":"Delete a company","operationId":"handler_api_v2_companies__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/jobs":{"get":{"tags":["CRM"],"summary":"List jobs","operationId":"handler_api_v2_jobs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"next_cursor of the previous page","title":"Cursor"},"description":"next_cursor of the previous page"},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only records changed at or after this ISO 8601 time","title":"Updated Since"},"description":"Only records changed at or after this ISO 8601 time"},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}","title":"Filter"},"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"field:asc or field:desc","title":"Sort"},"description":"field:asc or field:desc"},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated, e.g. company,owner","title":"Expand"},"description":"Linked records to include, comma separated, e.g. company,owner"}],"responses":{"200":{"description":"A page of records","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Job"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["CRM"],"summary":"Create a job","operationId":"handler_api_v2_jobs_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/jobs/{id}":{"get":{"tags":["CRM"],"summary":"Get a job","operationId":"handler_api_v2_jobs__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated","title":"Expand"},"description":"Linked records to include, comma separated"}],"responses":{"200":{"description":"The record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["CRM"],"summary":"Update a job","operationId":"handler_api_v2_jobs__id__patch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"responses":{"200":{"description":"The record after the change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["CRM"],"summary":"Delete a job","operationId":"handler_api_v2_jobs__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/placements":{"get":{"tags":["CRM"],"summary":"List placements","operationId":"handler_api_v2_placements_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"next_cursor of the previous page","title":"Cursor"},"description":"next_cursor of the previous page"},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only records changed at or after this ISO 8601 time","title":"Updated Since"},"description":"Only records changed at or after this ISO 8601 time"},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}","title":"Filter"},"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"field:asc or field:desc","title":"Sort"},"description":"field:asc or field:desc"},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated, e.g. company,owner","title":"Expand"},"description":"Linked records to include, comma separated, e.g. company,owner"}],"responses":{"200":{"description":"A page of records","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Placement"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["CRM"],"summary":"Create a placement","operationId":"handler_api_v2_placements_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Placement"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Placement"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/placements/{id}":{"get":{"tags":["CRM"],"summary":"Get a placement","operationId":"handler_api_v2_placements__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated","title":"Expand"},"description":"Linked records to include, comma separated"}],"responses":{"200":{"description":"The record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Placement"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["CRM"],"summary":"Update a placement","operationId":"handler_api_v2_placements__id__patch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Placement"}}}},"responses":{"200":{"description":"The record after the change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Placement"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["CRM"],"summary":"Delete a placement","operationId":"handler_api_v2_placements__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/applications":{"get":{"tags":["CRM"],"summary":"List applications","operationId":"handler_api_v2_applications_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"next_cursor of the previous page","title":"Cursor"},"description":"next_cursor of the previous page"},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only records changed at or after this ISO 8601 time","title":"Updated Since"},"description":"Only records changed at or after this ISO 8601 time"},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}","title":"Filter"},"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"field:asc or field:desc","title":"Sort"},"description":"field:asc or field:desc"},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated, e.g. company,owner","title":"Expand"},"description":"Linked records to include, comma separated, e.g. company,owner"},{"name":"job_id","in":"query","required":false,"schema":{"type":"string"},"description":"Only this job's"},{"name":"candidate_id","in":"query","required":false,"schema":{"type":"string"},"description":"Only this candidate's"},{"name":"stage","in":"query","required":false,"schema":{"type":"string"},"description":"Only the ones at this stage"}],"responses":{"200":{"description":"A page of records","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Application"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["CRM"],"summary":"Create a application","operationId":"handler_api_v2_applications_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Application"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Application"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/applications/{id}":{"get":{"tags":["CRM"],"summary":"Get a application","operationId":"handler_api_v2_applications__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated","title":"Expand"},"description":"Linked records to include, comma separated"}],"responses":{"200":{"description":"The record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Application"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["CRM"],"summary":"Update a application","operationId":"handler_api_v2_applications__id__patch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Application"}}}},"responses":{"200":{"description":"The record after the change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Application"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["CRM"],"summary":"Delete a application","operationId":"handler_api_v2_applications__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/notes":{"get":{"tags":["CRM"],"summary":"List notes","operationId":"handler_api_v2_notes_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"next_cursor of the previous page","title":"Cursor"},"description":"next_cursor of the previous page"},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only records changed at or after this ISO 8601 time","title":"Updated Since"},"description":"Only records changed at or after this ISO 8601 time"},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}","title":"Filter"},"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"field:asc or field:desc","title":"Sort"},"description":"field:asc or field:desc"},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated, e.g. company,owner","title":"Expand"},"description":"Linked records to include, comma separated, e.g. company,owner"},{"name":"person_id","in":"query","required":false,"schema":{"type":"string"},"description":"Only the ones on this person"},{"name":"company_id","in":"query","required":false,"schema":{"type":"string"},"description":"Only the ones on this company"},{"name":"job_id","in":"query","required":false,"schema":{"type":"string"},"description":"Only this job's"},{"name":"application_id","in":"query","required":false,"schema":{"type":"string"},"description":"Only the ones on this application"}],"responses":{"200":{"description":"A page of records","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Note"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["CRM"],"summary":"Create a note","operationId":"handler_api_v2_notes_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Note"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Note"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/notes/{id}":{"get":{"tags":["CRM"],"summary":"Get a note","operationId":"handler_api_v2_notes__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated","title":"Expand"},"description":"Linked records to include, comma separated"}],"responses":{"200":{"description":"The record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Note"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["CRM"],"summary":"Update a note","operationId":"handler_api_v2_notes__id__patch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Note"}}}},"responses":{"200":{"description":"The record after the change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Note"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["CRM"],"summary":"Delete a note","operationId":"handler_api_v2_notes__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/tasks":{"get":{"tags":["CRM"],"summary":"List tasks","operationId":"handler_api_v2_tasks_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"next_cursor of the previous page","title":"Cursor"},"description":"next_cursor of the previous page"},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only records changed at or after this ISO 8601 time","title":"Updated Since"},"description":"Only records changed at or after this ISO 8601 time"},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}","title":"Filter"},"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"field:asc or field:desc","title":"Sort"},"description":"field:asc or field:desc"},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated, e.g. company,owner","title":"Expand"},"description":"Linked records to include, comma separated, e.g. company,owner"},{"name":"person_id","in":"query","required":false,"schema":{"type":"string"},"description":"Only the ones on this person"},{"name":"company_id","in":"query","required":false,"schema":{"type":"string"},"description":"Only the ones on this company"},{"name":"job_id","in":"query","required":false,"schema":{"type":"string"},"description":"Only this job's"}],"responses":{"200":{"description":"A page of records","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Task"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["CRM"],"summary":"Create a task","operationId":"handler_api_v2_tasks_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/tasks/{id}":{"get":{"tags":["CRM"],"summary":"Get a task","operationId":"handler_api_v2_tasks__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated","title":"Expand"},"description":"Linked records to include, comma separated"}],"responses":{"200":{"description":"The record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["CRM"],"summary":"Update a task","operationId":"handler_api_v2_tasks__id__patch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"responses":{"200":{"description":"The record after the change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["CRM"],"summary":"Delete a task","operationId":"handler_api_v2_tasks__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/files":{"get":{"tags":["CRM"],"summary":"List files","operationId":"handler_api_v2_files_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"next_cursor of the previous page","title":"Cursor"},"description":"next_cursor of the previous page"},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only records changed at or after this ISO 8601 time","title":"Updated Since"},"description":"Only records changed at or after this ISO 8601 time"},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}","title":"Filter"},"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"field:asc or field:desc","title":"Sort"},"description":"field:asc or field:desc"},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated, e.g. company,owner","title":"Expand"},"description":"Linked records to include, comma separated, e.g. company,owner"},{"name":"person_id","in":"query","required":false,"schema":{"type":"string"},"description":"Only the ones on this person"},{"name":"job_id","in":"query","required":false,"schema":{"type":"string"},"description":"Only this job's"}],"responses":{"200":{"description":"A page of records","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/File"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["CRM"],"summary":"Create a file","operationId":"handler_api_v2_files_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/File"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/File"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/files/{id}":{"get":{"tags":["CRM"],"summary":"Get a file","operationId":"handler_api_v2_files__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated","title":"Expand"},"description":"Linked records to include, comma separated"}],"responses":{"200":{"description":"The record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/File"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["CRM"],"summary":"Update a file","operationId":"handler_api_v2_files__id__patch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/File"}}}},"responses":{"200":{"description":"The record after the change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/File"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["CRM"],"summary":"Delete a file","operationId":"handler_api_v2_files__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/users":{"get":{"tags":["CRM"],"summary":"List users","operationId":"handler_api_v2_users_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"next_cursor of the previous page","title":"Cursor"},"description":"next_cursor of the previous page"},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only records changed at or after this ISO 8601 time","title":"Updated Since"},"description":"Only records changed at or after this ISO 8601 time"},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}","title":"Filter"},"description":"A filter tree as saved views use it, JSON: {\"join\": \"and\", \"items\": [{\"field\", \"op\", \"value\"}]}"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"field:asc or field:desc","title":"Sort"},"description":"field:asc or field:desc"},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated, e.g. company,owner","title":"Expand"},"description":"Linked records to include, comma separated, e.g. company,owner"}],"responses":{"200":{"description":"A page of records","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/User"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/users/{id}":{"get":{"tags":["CRM"],"summary":"Get a user","operationId":"handler_api_v2_users__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Linked records to include, comma separated","title":"Expand"},"description":"Linked records to include, comma separated"}],"responses":{"200":{"description":"The record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/custom-fields":{"get":{"tags":["CRM"],"summary":"List custom fields","operationId":"list_custom_fields_api_v2_custom_fields_get","parameters":[{"name":"object","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"person, company, job, application, placement or deal","title":"Object"},"description":"person, company, job, application, placement or deal"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/custom-fields/{id}":{"get":{"tags":["CRM"],"summary":"Get a custom field","operationId":"get_custom_field_api_v2_custom_fields__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/applications/{id}/move-stage":{"post":{"tags":["CRM"],"summary":"Move an application to another stage","description":"Moves the application and, with a `note`, logs it on the candidate. `rejection_reason`, `next_action` and\n`next_action_at` ride along.","operationId":"move_stage_api_v2_applications__id__move_stage_post","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"examples":[{"stage":"INTERVIEW","note":"First interview booked for Tuesday"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/candidates/{id}/files":{"post":{"tags":["CRM"],"summary":"Upload a file (a CV) to a candidate","description":"Stores the file on the candidate and reads its text. PDF, DOCX, DOC, RTF, ODT or TXT, up to 10 MB. Free.","operationId":"candidate_file_api_v2_candidates__id__files_post","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"examples":[{"name":"Ada Example CV.pdf","content_base64":"JVBERi0x...","kind":"CV"}],"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/candidates/from-cv":{"post":{"tags":["CRM"],"summary":"Create a candidate from a CV (paid)","description":"Reads the CV and makes a candidate from it, with its work history and education, or adds it to the person it\nbelongs to. Paid: without `approved_credits` (or with too few) it answers 402 `needs_approval` with the `estimate`,\nand nothing is charged.","operationId":"candidate_from_cv_api_v2_candidates_from_cv_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"examples":[{"name":"Ada Example CV.pdf","content_base64":"JVBERi0x...","approved_credits":0.1}],"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v2/files/{id}/download":{"get":{"tags":["CRM"],"summary":"Download a file","description":"The file's bytes, sent as a download.","operationId":"file_download_api_v2_files__id__download_get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"4XX":{"description":"The error body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"Candidate":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"name":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"text":{"type":"string"}}},"owner_id":{"type":"string"},"job_title":{"type":"string"},"company_id":{"type":"string"},"headline":{"type":"string"},"location":{"type":"object","properties":{"street":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postcode":{"type":"string"},"country":{"type":"string","description":"ISO 3166-1 alpha-2"},"text":{"type":"string"}}},"emails":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string"},"label":{"type":"string","enum":["WORK","PERSONAL"]}}}},"phones":{"type":"array","items":{"type":"object","properties":{"phone":{"type":"string"},"label":{"type":"string","enum":["WORK","PERSONAL"]}}}},"linkedin_url":{"type":"string"},"person_type":{"type":"array","items":{"type":"string"}},"seniority":{"type":"string","enum":["JUNIOR","MID","SENIOR","LEAD","HEAD","EXECUTIVE"]},"skills":{"type":"array","items":{"type":"string"}},"languages":{"type":"array","items":{"type":"string"}},"candidate_status":{"type":"string","enum":["ACTIVE","PASSIVE","NOT_LOOKING","PLACED","UNKNOWN"]},"current_salary":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string","enum":["EUR","GBP","USD","CHF","AED","AUD"]}}},"expected_salary":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string","enum":["EUR","GBP","USD","CHF","AED","AUD"]}}},"expected_rate":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string","enum":["EUR","GBP","USD","CHF","AED","AUD"]},"unit":{"type":"string","enum":["DAY","HOUR"]}}},"available_from":{"type":"string","format":"date"},"notice_length":{"type":"string"},"work_authorisation":{"type":"string","enum":["YES","NEEDS_SPONSORSHIP","UNKNOWN"]},"workplace_preference":{"type":"string","enum":["REMOTE","HYBRID","ONSITE"]},"open_to_relocate":{"type":"boolean"},"has_cv":{"type":"boolean","readOnly":true},"source":{"type":"string"},"about":{"type":"string","description":"markdown"},"custom_fields":{"type":"object","description":"The workspace's own fields, by key (GET /api/v2/custom-fields)"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"Contact":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"name":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"text":{"type":"string"}}},"owner_id":{"type":"string"},"job_title":{"type":"string"},"company_id":{"type":"string"},"headline":{"type":"string"},"location":{"type":"object","properties":{"street":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postcode":{"type":"string"},"country":{"type":"string","description":"ISO 3166-1 alpha-2"},"text":{"type":"string"}}},"emails":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string"},"label":{"type":"string","enum":["WORK","PERSONAL"]}}}},"phones":{"type":"array","items":{"type":"object","properties":{"phone":{"type":"string"},"label":{"type":"string","enum":["WORK","PERSONAL"]}}}},"linkedin_url":{"type":"string"},"person_type":{"type":"array","items":{"type":"string"}},"seniority":{"type":"string","enum":["JUNIOR","MID","SENIOR","LEAD","HEAD","EXECUTIVE"]},"skills":{"type":"array","items":{"type":"string"}},"languages":{"type":"array","items":{"type":"string"}},"decision_maker":{"type":"string","enum":["YES","INFLUENTIAL","MAYBE","NO","UNKNOWN"]},"function":{"type":"string"},"bd_tags":{"type":"array","items":{"type":"string"}},"source":{"type":"string"},"about":{"type":"string","description":"markdown"},"custom_fields":{"type":"object","description":"The workspace's own fields, by key (GET /api/v2/custom-fields)"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"Company":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"name":{"type":"string"},"owner_id":{"type":"string"},"company_type":{"type":"string","enum":["CLIENT","PROSPECT","TARGET","DO_NOT_APPROACH"]},"industries":{"type":"array","items":{"type":"string"}},"company_size":{"type":"string","enum":["S_1","S_2_10","S_11_50","S_51_200","S_201_500","S_501_1000","S_1001_5000","S_5001_10000","S_10001_PLUS"]},"headcount":{"type":"number"},"websites":{"type":"array","items":{"type":"string"}},"linkedin_url":{"type":"string"},"location":{"type":"object","properties":{"street":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postcode":{"type":"string"},"country":{"type":"string","description":"ISO 3166-1 alpha-2"},"text":{"type":"string"}}},"fee_percent":{"type":"number"},"terms_signed_at":{"type":"string","format":"date"},"about":{"type":"string","description":"markdown"},"custom_fields":{"type":"object","description":"The workspace's own fields, by key (GET /api/v2/custom-fields)"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"Job":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"name":{"type":"string"},"status":{"type":"string","enum":["OPEN","ON_HOLD","FILLED","CLOSED"]},"owner_id":{"type":"string"},"company_id":{"type":"string"},"confidential_client":{"type":"boolean"},"hiring_manager_id":{"type":"string"},"location":{"type":"object","properties":{"street":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postcode":{"type":"string"},"country":{"type":"string","description":"ISO 3166-1 alpha-2"},"text":{"type":"string"}}},"priority":{"type":"string","enum":["HIGH","MEDIUM","LOW"]},"category":{"type":"string"},"salary_min":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string","enum":["EUR","GBP","USD","CHF","AED","AUD"]}}},"salary_max":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string","enum":["EUR","GBP","USD","CHF","AED","AUD"]}}},"fee_percent":{"type":"number"},"openings":{"type":"number"},"seniority":{"type":"string","enum":["JUNIOR","MID","SENIOR","LEAD","HEAD","EXECUTIVE"]},"workplace":{"type":"string","enum":["REMOTE","HYBRID","ONSITE"]},"days_on_site":{"type":"number"},"skills":{"type":"array","items":{"type":"string"}},"languages":{"type":"array","items":{"type":"string"}},"visa_sponsorship":{"type":"string","enum":["YES","CASE_BY_CASE","NO"]},"opened_at":{"type":"string","format":"date"},"description":{"type":"string","description":"markdown"},"employment_type":{"type":"string","enum":["PERMANENT","CONTRACT","INTERIM"]},"closed_at":{"type":"string","readOnly":true},"custom_fields":{"type":"object","description":"The workspace's own fields, by key (GET /api/v2/custom-fields)"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"Placement":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"name":{"type":"string"},"status":{"type":"string","enum":["PENDING_START","STARTED","INVOICED","PAID","FALLEN_OFF"]},"owner_id":{"type":"string"},"candidate_id":{"type":"string"},"company_id":{"type":"string"},"contact_id":{"type":"string"},"job_id":{"type":"string"},"deal_id":{"type":"string"},"start_date":{"type":"string","format":"date"},"salary":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string","enum":["EUR","GBP","USD","CHF","AED","AUD"]}}},"fee":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string","enum":["EUR","GBP","USD","CHF","AED","AUD"]}}},"fee_percent":{"type":"number"},"fee_type":{"type":"string","enum":["CONTINGENT","RETAINED","CONTRACT"]},"end_date":{"type":"string","format":"date"},"guarantee_ends_at":{"type":"string","format":"date"},"custom_fields":{"type":"object","description":"The workspace's own fields, by key (GET /api/v2/custom-fields)"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"Application":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"candidate_id":{"type":"string"},"job_id":{"type":"string"},"stage":{"type":"string"},"origin":{"type":"string"},"fit_score":{"type":"string"},"tier":{"type":"string"},"fit_reason":{"type":"string"},"next_action":{"type":"string"},"next_action_at":{"type":"string"},"rejection_reason":{"type":"string"},"custom_fields":{"type":"object","description":"The workspace's own fields, by key (GET /api/v2/custom-fields)"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"Note":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"title":{"type":"string"},"type_id":{"type":"string"},"body":{"type":"string","description":"markdown"},"person_id":{"type":"string"},"company_id":{"type":"string"},"job_id":{"type":"string"},"application_id":{"type":"string"},"placement_id":{"type":"string"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"Task":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"title":{"type":"string"},"status":{"type":"string"},"due_at":{"type":"string"},"owner_id":{"type":"string"},"call_outcome":{"type":"string"},"body":{"type":"string","description":"markdown"},"person_id":{"type":"string"},"company_id":{"type":"string"},"job_id":{"type":"string"},"placement_id":{"type":"string"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"File":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"name":{"type":"string"},"kind":{"type":"string"},"mime_type":{"type":"string"},"size_bytes":{"type":"string"},"person_id":{"type":"string"},"job_id":{"type":"string"},"owner_id":{"type":"string"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"User":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"name":{"type":"string"},"email":{"type":"string"},"role":{"type":"string"},"active":{"type":"string"},"team_id":{"type":"string"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["conflict","cursor_too_deep","forbidden","idempotency_key_in_use","idempotency_key_reused","internal_error","invalid_request","method_not_allowed","needs_approval","not_found","rate_limited","too_large","unauthorized","upstream_error"]},"message":{"type":"string"}},"additionalProperties":true}}}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}}},"security":[{"bearer":[]}],"servers":[{"url":"https://recruit.hyreflow.ai"}]}