openapi: 3.2.0 info: title: LeafLink Contact API version: '2022-10-31' description: 'This reference specification outlines all the available HTTP operations of the LeafLink API. See the [LeafLink Developer Hub](/api) for guides, how-to, and general information of the API. ' termsOfService: https://www.leaflink.com/terms-and-conditions/ contact: email: support@leaflink.com servers: - url: https://api.leaflink.com description: LeafLink API production URL. - url: https://staging-api.leaflink.com description: LeafLink API staging URL. security: - bearerAuth: [] tags: - name: Contact paths: /contacts: get: operationId: contacts_list description: List multiple Contacts. summary: List Contacts parameters: - in: query name: company_slug schema: type: string - in: query name: created_date schema: type: string format: date-time - in: query name: created_on__gt schema: type: string format: date-time - in: query name: created_on__gte schema: type: string format: date-time - in: query name: created_on__lt schema: type: string format: date-time - in: query name: created_on__lte schema: type: string format: date-time - in: query name: delete schema: type: string format: date-time - in: query name: email schema: type: string format: email - in: query name: email__in schema: type: array items: type: string description: Multiple values may be separated by commas. explode: false style: form - in: query name: email__startswith schema: type: string - in: query name: first_name schema: type: string - in: query name: first_name__in schema: type: array items: type: string description: Multiple values may be separated by commas. explode: false style: form - in: query name: first_name__startswith schema: type: string - in: query name: id schema: type: integer - in: query name: last_name schema: type: string - in: query name: last_name__in schema: type: array items: type: string description: Multiple values may be separated by commas. explode: false style: form - in: query name: last_name__startswith schema: type: string - in: query name: modified__gt schema: type: string format: date-time - in: query name: modified__gte schema: type: string format: date-time - in: query name: modified__lt schema: type: string format: date-time - in: query name: modified__lte schema: type: string format: date-time - in: query name: modified_date schema: type: string format: date-time - name: ordering required: false in: query description: Which field to use when ordering the results. schema: type: string - in: query name: owner schema: type: integer - name: page required: false in: query description: A page number within the paginated result set. schema: type: integer - name: page_size required: false in: query description: Number of results to return per page. schema: type: integer - name: search required: false in: query description: A search term. schema: type: string - name: LeafLink-Version description: '[API version docs](/api/getting-started/#versioning)' required: false in: header schema: type: string format: date tags: - Contact security: - bearerAuth: [] responses: '200': description: A list of serialized contacts headers: RateLimit-Limit: schema: type: integer description: The requests quota in the time window. RateLimit-Remaining: schema: type: integer description: The remaining requests quota in the current window. RateLimit-Reset: schema: type: integer description: The time remaining in the current window, specified in seconds. RateLimit-Policy: schema: type: string description: The quota policy information. '429': description: Rate Limit Error headers: Retry-After: schema: type: integer description: The time remaining before the rejected request can be tried again, specified in seconds. /contacts/{id}: get: operationId: contacts_retrieve description: Get a single Contact. summary: Get Contact parameters: - in: path name: id schema: type: integer description: A unique integer value identifying this contact. required: true - name: LeafLink-Version description: '[API version docs](/api/getting-started/#versioning)' required: false in: header schema: type: string format: date tags: - Contact security: - bearerAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/UnifiedContact' description: '' headers: RateLimit-Limit: schema: type: integer description: The requests quota in the time window. RateLimit-Remaining: schema: type: integer description: The remaining requests quota in the current window. RateLimit-Reset: schema: type: integer description: The time remaining in the current window, specified in seconds. RateLimit-Policy: schema: type: string description: The quota policy information. '429': description: Rate Limit Error headers: Retry-After: schema: type: integer description: The time remaining before the rejected request can be tried again, specified in seconds. components: schemas: UnifiedContact: type: object description: Unified Contact serializer properties: id: type: integer readOnly: true created_date: type: string format: date-time readOnly: true description: Date and time the resource was created modified_date: type: string format: date-time readOnly: true description: Date and time of the last edit owner: type: integer first_name: type: string maxLength: 30 last_name: type: string maxLength: 30 email: type: - string - 'null' format: email title: Email address maxLength: 255 secondary_email: type: - string - 'null' format: email title: Secondary email address maxLength: 255 role: type: - string - 'null' title: Position description: Position or role at company maxLength: 400 description: type: - string - 'null' description: An overview of the contact maxLength: 1500 phone: type: - string - 'null' description: Phone Number of Brand pattern: ^(\d{10})?$ maxLength: 400 phone_extension: type: - string - 'null' maxLength: 20 secondary_phone: type: - string - 'null' description: Secondary Phone Number of Brand pattern: ^(\d{10})?$ maxLength: 400 secondary_phone_extension: type: - string - 'null' maxLength: 20 delete: type: boolean title: Contact deleted description: Is this Contact marked as deleted? required: - created_date - first_name - id - modified_date - owner securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: JWT description: 'Authentication is done via access tokens (JWTs). See the [API authentication doc](/api/getting-started/#authentication) for more information. ' tokenAuth: type: apiKey in: header name: Authorization description: Token-based authentication with required prefix "Token"