openapi: 3.1.0 info: title: Microsoft Dataverse Web API (Dynamics 365 Sales) Accounts Contacts API description: 'OData v4 RESTful Web API for Microsoft Dataverse, the platform behind Dynamics 365 Sales. Used to create, read, update, and delete Dynamics 365 Sales records (accounts, contacts, leads, opportunities, quotes, orders, invoices, products, tasks) and to invoke bound and unbound actions and functions. Authentication uses OAuth 2.0 bearer tokens issued by Microsoft Entra ID; the endpoint is per-environment, for example https://{org}.api.crm.dynamics.com/api/data/v9.2/. ' version: v9.2 contact: name: Kin Lane email: kin@apievangelist.com license: name: Microsoft Terms of Use url: https://www.microsoft.com/en-us/legal/terms-of-use servers: - url: https://{org}.api.crm.dynamics.com/api/data/v9.2 description: Dataverse environment endpoint variables: org: default: contoso description: Dataverse organization (environment) prefix security: - oauth2: [] tags: - name: Contacts description: Contact (person) records paths: /contacts: get: tags: - Contacts summary: Query contacts operationId: contacts_list parameters: - $ref: '#/components/parameters/select' - $ref: '#/components/parameters/filter' - $ref: '#/components/parameters/top' responses: '200': description: OK post: tags: - Contacts summary: Create a contact operationId: contacts_create requestBody: required: true content: application/json: schema: type: object responses: '204': description: No Content /contacts({contactid}): get: tags: - Contacts summary: Get a contact operationId: contacts_get parameters: - name: contactid in: path required: true schema: type: string format: uuid responses: '200': description: OK patch: tags: - Contacts summary: Update a contact operationId: contacts_update parameters: - name: contactid in: path required: true schema: type: string format: uuid requestBody: required: true content: application/json: schema: type: object responses: '204': description: No Content delete: tags: - Contacts summary: Delete a contact operationId: contacts_delete parameters: - name: contactid in: path required: true schema: type: string format: uuid responses: '204': description: No Content components: parameters: select: name: $select in: query schema: type: string filter: name: $filter in: query schema: type: string top: name: $top in: query schema: type: integer securitySchemes: oauth2: type: oauth2 description: Microsoft Entra ID OAuth 2.0 bearer token flows: authorizationCode: authorizationUrl: https://login.microsoftonline.com/common/oauth2/v2.0/authorize tokenUrl: https://login.microsoftonline.com/common/oauth2/v2.0/token scopes: https://{org}.api.crm.dynamics.com/.default: Dataverse environment access clientCredentials: tokenUrl: https://login.microsoftonline.com/common/oauth2/v2.0/token scopes: https://{org}.api.crm.dynamics.com/.default: Service-to-service access