openapi: 3.2.0 info: title: rest-api Contact API version: 1.0.0 description: "Refer to our website to know more about [Clari Copilot](https://www.clari.com/products/copilot/).\n\n**To learn how to use the Clari Copilot API, please follow this integration guide (link).**
It explains how you get your API key, gives context on how the endpoints work together, and provides example code.\n\n# Authentication\n\nYou need to pass both API key and password in specified headers to authenticate with Clari Copilot API.\n\nExample curl command fetching users:\n\n
\n \n curl -H \"X-Api-Key:<your_api_key>\" -H \"X-Api-Password:<your_api_password>\" \"https://rest-api.copilot.clari.com/users\"\n \n
\n\nYou'll find API key and secret in workspace settings > integrations > Clari Copilot API\n\n\n\n\n\n# Rate limit\n\nDefault rate limit is 10 per second.\n\nAlso 100k requests per week is also imposed. Week starts every Sunday 0 GMT.\n\n# Example\n\nHere is a python script that demonstrate how to fetch calls and print csv: Calls example\n\nHere is a python script that demonstrate how to use CRM endpoints: CRM example\n\n# Deprecation\n\nThis api's old domain https://rest-api.trywingman.com is deprecated and will be supported till end of 2023 to allow existing clients to migrate.\n" contact: name: Support email: copilot-support@clari.com url: https://api-doc.copilot.clari.com x-logo: url: /logo.png servers: - url: https://rest-api.copilot.clari.com tags: - name: contact description: Contacts in CRM paths: /create-contact: post: tags: - contact summary: Create contact description: Creates a data for new contact in Copilot system requestBody: content: application/json: schema: $ref: '#/components/schemas/ContactWithoutId' responses: 200: description: 200 response content: application/json: schema: $ref: '#/components/schemas/Contact' 400: $ref: '#/components/responses/400' 500: $ref: '#/components/responses/500' security: - api_key: [] api_password: [] /get-contact: get: tags: - contact summary: Read contact description: Returns details of contact with source id passed as query param parameters: - name: id in: query description: source id of the contact required: true schema: type: string responses: 200: description: 200 response content: application/json: schema: $ref: '#/components/schemas/Contact' 400: $ref: '#/components/responses/400' 404: description: Not found content: application/json: schema: type: object 500: $ref: '#/components/responses/500' security: - api_key: [] api_password: [] /update-contact: put: tags: - contact summary: Update contact description: Update a data for new contact in Copilot system requestBody: content: application/json: schema: $ref: '#/components/schemas/Contact' responses: 200: description: 200 response content: application/json: schema: $ref: '#/components/schemas/Contact' 400: $ref: '#/components/responses/400' 500: $ref: '#/components/responses/500' security: - api_key: [] api_password: [] /delete-contact: delete: tags: - contact summary: Delete contact description: Returns details of last snapshot of deleted contact requestBody: content: application/json: schema: properties: id: type: string description: source id of contact responses: 200: description: 200 response content: application/json: schema: $ref: '#/components/schemas/Contact' 400: $ref: '#/components/responses/400' 404: description: Not found content: application/json: schema: type: object 500: $ref: '#/components/responses/500' security: - api_key: [] api_password: [] components: schemas: Contact: title: Contact object type: object allOf: - type: object properties: id: description: Id of contact in Copilot type: string - $ref: '#/components/schemas/ContactWithoutId' CustomField: title: Custom key value field for any document type: object properties: key: type: string value: type: string ContactWithoutId: title: Contact object type: object properties: crm_id: description: Id of the contact in the source CRM system. type: string account_crm_id: description: Account id as per the source type: string first_name: description: First name of the contact type: string last_name: description: Last name of the contact type: string job_title: description: Job title of the contact type: string phones: description: All the phone numbers of the contact type: array items: type: string stage: description: Stage of the contact type: string reason: description: Reason of the contact type: string emails: description: All the emails of the contact type: array items: type: string is_lead: description: If the contact is in lead stage type: boolean custom_fields: description: Other relevant customer fields type: array items: $ref: '#/components/schemas/CustomField' securitySchemes: api_key: type: apiKey name: X-Api-Key in: header api_password: type: apiKey name: X-Api-Password in: header x-tagGroups: - name: General tags: - call - user - topics - scorecard - name: CRM Objects tags: - contact - account - deal