openapi: 3.2.0 info: title: Elemental Machines Groups API description: Documentation for using Elemental Machines API. To start, get an access token using /oauth/token. version: '1.0' contact: email: help@elementalmachines.io servers: - url: https://api.elementalmachines.io description: Elemental Machines production API security: - access_token: [] tags: - name: Groups paths: /api/customer_groups/my.json: get: tags: - Groups summary: Get current group operationId: customerGroupsMy parameters: - name: access_token in: query description: Access token required: true schema: type: string responses: '200': description: Success content: application/json: schema: type: object '401': description: Not Authorized content: application/json: schema: type: object security: - access_token: [] /api/customer_groups.json: get: tags: - Groups summary: Get all groups operationId: customerGroupsIndex parameters: - name: access_token in: query description: Access token required: true schema: type: string responses: '200': description: Success content: application/json: schema: type: object '401': description: Not Authorized content: application/json: schema: type: object security: - access_token: [] components: securitySchemes: access_token: type: apiKey in: query name: access_token description: OAuth 2.0 access token passed as the access_token query parameter. Obtain one from POST /oauth/token (Resource Owner Password Credentials grant). oauth2_password: type: oauth2 description: Resource Owner Password Credentials grant. Documented in the provider's Swagger 1.2 declaration at /docs/api/oauth.json. flows: password: tokenUrl: https://api.elementalmachines.io/oauth/token scopes: {}