openapi: 3.2.0 info: title: wazo-dird Office365 API description: "Contacts and directories in Wazo are managed by the wazo-dird daemon. This service provides a public API that can be used to query the directories that are configured on a Wazo. \n\n\nA contact can contain various information such as a person's phone number, number, office number, department, office number, etc. The information displayed is selected via a profile. Directories can be aggregated using multiple data sources such as an LDAP server, a CSV file, another Wazo server, etc.\n\n\nPlease refer to [the documentation](https://wazo-platform.org/uc-doc) for further details.\n\n\nNote: The 0.1 API is currently in development. Major changes could still happen and new resources will be added over time." version: '0.1' license: name: GPL v3 url: http://www.gnu.org/licenses/gpl.txt contact: name: Wazo Dev Team url: https://wazo-platform.org/ email: dev@wazo.community x-logo: url: https://wazo-platform.org/images/logo-black.svg backgroundColor: '#FAFAFA' altText: Wazo Logo servers: - url: /0.1 security: - wazo_auth_token: [] tags: - name: office365 paths: /backends/office365/sources/{source_uuid}/contacts: get: description: '**Required ACL:** `dird.backends.office365.sources.{source_uuid}.contacts.read`' operationId: list_microsoft_contacts_from_source parameters: - $ref: '#/components/parameters/tenantuuid' - in: path name: source_uuid required: true description: Source uuid schema: type: string - $ref: '#/components/parameters/order' - $ref: '#/components/parameters/direction' - $ref: '#/components/parameters/limit' - $ref: '#/components/parameters/offset' - $ref: '#/components/parameters/search' summary: Retrieve all contacts from `office365` tags: - office365 responses: '200': description: 'Contacts as fetched from microsoft api. To know more about Microsoft contacts properties, see https://docs.microsoft.com/en-us/graph/api/resources/contact?view=graph-rest-1.0#properties ' content: application/json: schema: $ref: '#/components/schemas/Office365ContactList' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/LegacyError' '404': description: No such source content: application/json: schema: $ref: '#/components/schemas/LegacyError' '503': description: Another service is unavailable (e.g. wazo-auth, office365, ...) content: application/json: schema: $ref: '#/components/schemas/LegacyError' components: parameters: search: required: false name: search in: query description: Search term for filtering a list of items. Only items with a field containing the search term will be returned. schema: type: string direction: required: false name: direction in: query description: Sort list of items in 'asc' (ascending) or 'desc' (descending) order schema: type: string enum: - asc - desc offset: name: offset in: query description: The offset defines the offsets the start by the number specified required: false schema: type: integer default: 0 limit: name: limit in: query description: The limit defines the number of individual objects that are returned required: false schema: type: integer tenantuuid: name: Wazo-Tenant in: header description: The tenant's UUID, defining the ownership of a given resource. required: false schema: type: string order: required: false name: order in: query description: Name of the field to use for sorting the list of items returned. schema: type: string schemas: LegacyError: title: LegacyError description: Error message for the client properties: timestamp: description: Time at which the error occured type: array items: type: number format: timestamp reason: description: Human readable explanation of the error type: array items: type: string status_code: description: HTTP status code type: integer Office365ContactList: properties: items: type: array items: type: object readOnly: true total: type: integer description: The number of contacts readOnly: true filtered: type: integer description: The number of contacts matching the searched terms readOnly: true securitySchemes: wazo_auth_token: type: apiKey name: X-Auth-Token in: header x-xivo-port: 9489 x-xivo-name: dird x-apievangelist-source: harvested_from: https://github.com/wazo-platform/wazo-dird assembly: base plugin api.yml deep-merged with all plugin api.yml fragments, reproducing what the running service serves at /api/dird/0.1/api/api.yml (see wazo_dird/plugins/api/http.py — xivo.chain_map.ChainMap) spec_version: Swagger 2.0 (as published by Wazo) harvested: '2026-08-17'