openapi: 3.0.0 info: version: 1.0.0 title: Channel Accounts Teams API contact: name: Front Platform url: https://community.front.com servers: - url: https://api2.frontapp.com security: - http: [] tags: - name: Teams paths: /teams: get: summary: List teams operationId: list-teams description: 'List the teams (workspaces) in the company. Required scope: `teams:read`' tags: - Teams responses: '200': $ref: '#/components/responses/listOfTeams' x-required-scopes: - teams:read /teams/{team_id}: get: summary: Get team operationId: get-team description: 'Fetch a team (workspace). Required scope: `teams:read`' tags: - Teams parameters: - in: path name: team_id required: true description: The Team ID schema: type: string default: tim_123 responses: '200': $ref: '#/components/responses/team' x-required-scopes: - teams:read /teams/{team_id}/teammates: post: summary: Add teammates to team operationId: add-teammates-to-team description: 'Add one or more teammates to a team (workspace). Required scope: `teams:write`' tags: - Teams parameters: - in: path name: team_id required: true description: The Team ID schema: type: string default: tim_123 requestBody: description: Teammate IDs to add. Alternatively, you can supply emails as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1). content: application/json: schema: $ref: '#/components/schemas/TeammateIds' responses: '204': description: No content x-required-scopes: - teams:write delete: summary: Remove teammates from team operationId: remove-teammates-from-team description: 'Remove one or more teammates from a team (workspace). Required scope: `teams:write`' tags: - Teams parameters: - in: path name: team_id required: true description: The Team ID schema: type: string default: tim_123 requestBody: description: Teammate IDs to remove from the team. Alternatively, you can supply emails as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1). content: application/json: schema: $ref: '#/components/schemas/TeammateIds' responses: '204': description: No content x-required-scopes: - teams:write components: schemas: TeammateResponse: type: object description: A teammate is a user in Front. required: - _links - id - email - username - first_name - last_name - license_type - is_admin - is_available - is_blocked - type - custom_fields properties: _links: type: object properties: self: type: string description: Link to resource example: https://yourCompany.api.frontapp.com/teammates/tea_6r55a related: type: object properties: inboxes: type: string description: Link to teammate's inboxes example: https://yourCompany.api.frontapp.com/teammates/tea_6r55a/inboxes conversations: type: string description: Link to teammate's conversations example: https://yourCompany.api.frontapp.com/teammates/tea_6r55a/conversations botSource: type: string description: Link to the source resource of the bot (e.g. rule) example: https://yourCompany.api.frontapp.com/rules/rul_6r55a id: type: string description: Unique identifier of the teammate example: tea_6r55a email: type: string description: Email address of the teammate example: michael.scott@dundermifflin.com username: type: string description: Username of the teammate (used for "@" mentions) example: PrisonMike first_name: type: string description: First name of the teammate example: Michael last_name: type: string description: Last name of the teammate example: Scott is_admin: type: boolean description: Whether or not the teammate is an admin in your company example: true is_available: type: boolean description: Whether or not the teammate is available example: false is_blocked: type: boolean description: Whether or not the teammate account has been blocked example: false type: type: string description: "Type of the teammate, normal teammates are denoted as \"user\", while visitors are denoted as \"visitor\".\nBot users are denoted by their parent resource type.\nThe following bot types are available:\n * rule: acting on behalf of a Rule, author of comments and drafts\n * macro: acting on behalf of a Macro, author of comments and drafts\n * API: acting on behalf of OAuth clients\n * integration: acting on behalf of an Integration\n * CSAT: used for authoring CSAT response comments\n" enum: - user - visitor - rule - macro - API - integration - CSAT custom_fields: description: Custom fields for this teammate $ref: '#/components/schemas/CustomFieldParameter' InboxResponse: type: object properties: _links: type: object properties: self: type: string description: Link to resource example: https://yourCompany.api.frontapp.com/inboxes/inb_1ix6 related: type: object properties: teammates: type: string description: Link to inbox teammates example: https://yourCompany.api.frontapp.com/inboxes/inb_1ix6/teammates conversations: type: string description: Link to inbox conversations example: https://yourCompany.api.frontapp.com/inboxes/inb_1ix6/conversations channels: type: string description: Link to inbox channels example: https://yourCompany.api.frontapp.com/inboxes/inb_1ix6/channels owner: type: string description: Link to inbox owner example: https://yourCompany.api.frontapp.com/teams/tim_k30 id: type: string description: Unique identifier for the inbox example: inb_1ix6 name: type: string description: Name of the inbox example: The Dundies is_private: type: boolean description: Whether or not the inbox is individual example: false is_public: type: boolean description: Whether or not the inbox is available to all members of a team by default example: true custom_fields: description: Custom fields for this inbox $ref: '#/components/schemas/CustomFieldParameter' TeammateIds: type: object required: - teammate_ids properties: teammate_ids: type: array items: $ref: '#/components/schemas/ResourceID' ResourceID: type: string TeamResponse: type: object required: - _links - id - name - inboxes - members properties: _links: type: object properties: self: type: string description: Link to resource example: https://yourCompany.api.frontapp.com/teams/tim_aqsa id: type: string description: Unique identifier of the team example: tim_aqsa name: type: string description: Name of the team example: Stanley's crossword puzzle team inboxes: type: array description: List of the inboxes in the team items: $ref: '#/components/schemas/InboxResponse' members: type: array description: List of the teammates that have access to the team items: $ref: '#/components/schemas/TeammateResponse' CustomFieldParameter: type: object description: An object whose key is the `name` property defined for the custom field in the Front UI. The value of the key must use the same `type` specified for the custom field, as described in https://dev.frontapp.com/reference/custom-fields example: city: London, UK isVIP: true renewal_date: 1525417200 sla_time: 90 owner: leela@planet-express.com replyTo: inb_55c8c149 Job Title: firefighter TeamPreviewResponse: type: object required: - _links - id - name properties: _links: type: object properties: self: type: string description: Link to resource example: https://yourCompany.api.frontapp.com/teams/tim_aqsa id: type: string description: Unique identifier of the team example: tim_aqsa name: type: string description: Name of the team example: Stanley's crossword puzzle team responses: listOfTeams: description: Array of teams content: application/json: schema: type: object properties: _links: type: object properties: self: type: string description: Link to resource example: https://yourCompany.api.frontapp.com/teams _results: type: array items: $ref: '#/components/schemas/TeamPreviewResponse' team: description: A team content: application/json: schema: $ref: '#/components/schemas/TeamResponse' securitySchemes: http: type: http scheme: bearer bearerFormat: JWT x-api-id: front x-explorer-enabled: false x-proxy-enabled: true x-samples-enabled: true