openapi: 3.2.0 info: title: Pipeliner Cloud Company Email API version: '100' servers: - url: https://us-east.api.pipelinersales.com/api/v100/rest/spaces/{space_id} - url: https://eu-central.api.pipelinersales.com/api/v100/rest/spaces/{space_id} - url: https://ca-central.api.pipelinersales.com/api/v100/rest/spaces/{space_id} - url: https://ap-southeast.api.pipelinersales.com/api/v100/rest/spaces/{space_id} tags: - name: Company Email paths: /entities/CompanyEmails/{id}: get: description: Returns CompanyEmail with given id operationId: CompanyEmails.get summary: CompanyEmails.get tags: - Company Email parameters: - name: id in: path description: ID of CompanyEmail to retrieve required: true schema: type: string format: uuid responses: '200': description: CompanyEmail data content: application/json: schema: type: object properties: success: type: boolean example: true description: True when response succeeded, false on error. data: $ref: '#/components/schemas/CompanyEmail' '404': description: Sent when invalid ID is given content: application/json: schema: $ref: '#/components/schemas/Error' '500': description: unexpected error content: application/json: schema: $ref: '#/components/schemas/Error' /entities/CompanyEmails: get: description: Returns all defined CompanyEmails operationId: CompanyEmails.list summary: CompanyEmails.list tags: - Company Email parameters: - name: include-deleted in: query description: if enabled, deleted CompanyEmails are returned as well required: false schema: type: boolean - name: first in: query description: 'Number of entities to return from beginning of the result set. Max: 100. Default: 30' required: false schema: type: integer format: int32 - name: last in: query description: Return only the "last" number of entities from result set. When used with first parameter, then it returns last M records from the first N records. required: false schema: type: integer format: int32 - name: before in: query description: Cursor until which to take entities to result set. required: false schema: type: string - name: after in: query description: Cursor after which to start taking entities to result set. required: false schema: type: string - name: expand in: query description: Expand related entity. Use api_names of relation fields. You can use multiple values separated via ',' colon. If not used, URI link will be returned instead. You can use dots '.' to expand nested entities as well. required: false example: expand=owner,sales_unit,account_relations.account schema: type: string - name: order-by in: query description: Order by values. Use api_name of field to sort by ascending. Prefix api_name with '-' to descending sort. You can use multiple values separated via ',' colon. example: order-by=created,-modified required: false schema: type: string - name: filter in: query description: Use name of field in braces to filter by this field. To advanced filter, use with combination with filter-op parameter. example: filter[name]=Example required: false schema: type: object style: deepObject allowReserved: true - name: filter-op in: query description: 'Filter operator. Specify a way how to filter fields. Supported operators: [eq, ieq, not-eq, not-ieq, contains, starts, ends, icontains, istarts, iends, null, not-null, empty, not-empty, gt, gte, lt, lte, between].' example: filter-op[name]=eq required: false schema: type: object style: deepObject allowReserved: true - name: load-only in: query description: Loads only fields defined within this parameter. You can use multiple values separated via ',' colon. If not used, then all fields are returned. You can use dots '.' to specify load only fields in nested as well. required: false example: load-only=id,name,owner.id schema: type: string responses: '200': description: list of CompanyEmails content: application/json: schema: type: object properties: success: type: boolean example: true description: True when response succeeded, false on error. data: type: array items: $ref: '#/components/schemas/CompanyEmail' page_info: type: object properties: start_cursor: type: string example: WyIwMSIsICJiMmYwODI0Ni1iYWE5LTQyY2QtYmM3Yi04YmM4MjY3M2E2NTgiXQ== description: Start cursor of result set. end_cursor: type: string example: WyIwNSIsICJmMjZhZjZiMC00ZWE4LTQ3MDgtODU2NC0wN2JmYzI4ZGQ5ZTgiXQ== description: End cursor of result set. has_previous_page: type: boolean example: true description: If result set has previous page (if yes, use start_cursor value in before parameter to load it). has_next_page: type: boolean example: true description: If result set has next page (if yes, use end_cursor value in after parameter to load it). description: Page info result set. Please note it is returned only when legacy limit & offset parameters are not used. '500': description: unexpected error content: application/json: schema: $ref: '#/components/schemas/Error' components: schemas: Error: properties: http_status: description: HTTP status code type: integer example: 400 code: description: Internal API error code type: integer example: 117 name: description: Name of the API error type: string example: ERROR_PARAMETER_INVALID message: description: Description of the API error type: string success: description: Always false on error. type: boolean example: false required: - success - http_status CompanyEmail: properties: is_delete_protected: type: boolean example: false description: Tells if the entity instance is protected against delete (Entities that need to be present in the system at any time). Delete action still may fail if entity is deletable, due some other additional validations. readOnly: true id: type: string format: uuid example: 01234567-abcd-dcba-ffff-000000000000 description: Unique identifier of entity. readOnly: true is_deleted: type: boolean example: false description: Specifies if the entity is considered deleted. readOnly: true modified: type: string format: date-time example: '2019-01-01T00:00:00' description: Last modification time. readOnly: true created: type: string format: date-time example: '2019-01-01T00:00:00' description: Creation time. readOnly: true email: type: string example: string description: Email address of the company mailbox (the From address). enabled: type: boolean example: false description: False when the mailbox is disabled (either by the user or because the underlying feature is not available); true otherwise. error_code: type: integer format: int32 example: 1 description: Error code recorded for the mailbox; empty when healthy. Set on integration failures or when the user disables the integration. name: type: string example: string description: Display name of the company email account, shown in the UI. picture_url: type: string example: string description: URL of the avatar image used as the sender picture for emails sent from this account. service_type: type: integer description: 'Field whose values are strictly defined with an enumeration of values. Integer enum value: 1 - O365Email, 2 - GoogleEmail, 3 - SendGrid' example: 1 enum: - 1 - 2 - 3 settings: type: object description: Provider-specific configuration for the mailbox (e.g. parse_subdomain for SendGrid). token: type: string format: binary example: blob description: OAuth/secret credentials for the mailbox. Read-only and only returned to service-to-service callers; setting via the public API is not supported. features: type: array items: type: integer description: 'Integer enum value: 1 - CanSyncBounces, 2 - CanSyncIncoming' example: 1 enum: - 1 - 2 description: List of capabilities supported by the underlying email service (e.g. CanSyncBounces, CanSyncIncoming). mailbox_id: type: string format: uuid example: 01234567-abcd-dcba-ffff-000000000000 description: Stable UUID derived from the mailbox address and service type, used to correlate the company email account with its integration settings entry. required: - is_delete_protected - id - enabled - name - service_type - features