Openpath orgs/hookEvents API

The orgs/hookEvents API from Openpath — 2 operation(s) for orgs/hookevents.

OpenAPI Specification

openpath-orgs-hookevents-api-openapi.yml Raw ↑
swagger: '2.0'
info:
  title: Openpath API Documentation auth orgs/hookEvents API
  version: 1.0.0
  description: Authentication and Login
host: api.openpath.com
schemes:
- https
consumes:
- application/json
produces:
- application/json
tags:
- name: orgs/hookEvents
paths:
  /orgs/{orgId}/hookEvents:
    get:
      summary: List all hook events
      operationId: listHookEvents
      description: '__JWT is required for this endpoint with at least one of the following scopes__: o{params.orgId}-configurations:w,o{params.orgId}-configurations:r,o{params.orgId}-outboundWebhooks:w,o{params.orgId}-outboundWebhooks:r,o:w,o:r,s-o:w,s-o:r<br/><br/>__Endpoint name__: listHookEvents'
      parameters:
      - type: integer
        name: orgId
        in: path
        required: true
      - type: integer
        minimum: 1
        maximum: 1000
        name: limit
        in: query
      - type: integer
        default: 0
        minimum: 0
        name: offset
        in: query
      - type: string
        default: name
        pattern: ^[a-zA-Z0-9.]+(,\s*[a-zA-Z0-9.]+)*$
        name: sort
        in: query
      - type: string
        default: asc
        pattern: ^(asc|desc)+(,\s*(asc|desc)+)*$
        name: order
        in: query
      - type: string
        name: q
        in: query
      - type: string
        name: filter
        in: query
      - type: string
        name: preFilter
        in: query
      consumes:
      - application/json
      produces:
      - application/json
      tags:
      - orgs/hookEvents
      security:
      - jwt: []
      responses:
        '200':
          schema:
            type: object
            properties:
              totalCount:
                type: integer
              filteredCount:
                type: integer
              data:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: number
                    name:
                      type: string
                    description:
                      type: string
                    hookEventLocation:
                      type: object
                      properties:
                        id:
                          type: number
                        name:
                          type: string
                        acceptsTargetUrl:
                          type: boolean
                        acceptsHookAction:
                          type: boolean
                      required:
                      - id
                    hookEventLocations:
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: number
                          name:
                            type: string
                          acceptsTargetUrl:
                            type: boolean
                          acceptsHookAction:
                            type: boolean
                        required:
                        - id
                    requiredFeature:
                      x-nullable: true
                      type: object
                      properties:
                        id:
                          type: integer
                        code:
                          type: string
                      required:
                      - id
                    isCloudRecorded:
                      type: boolean
                    fieldMap:
                      x-nullable: true
                      type: object
                    flags:
                      x-nullable: true
                      type: object
                  required:
                  - id
                  - isCloudRecorded
              meta:
                type: object
                properties:
                  accessToken:
                    x-nullable: true
                    type: object
                    properties:
                      scopeUpdatedAt:
                        type: string
                        format: date
                  siteSpecificAccess:
                    x-nullable: true
                    type: object
                    properties:
                      isSiteSpecific:
                        type: boolean
                      siteIds:
                        x-nullable: true
                        type: array
                        items:
                          type: integer
                      siteIdsByScope:
                        type: object
                        properties:
                          string:
                            x-nullable: true
                            type: array
                            items:
                              type: integer
                        x-nullable: true
          description: Successful
      x-op-scopes:
      - o{params.orgId}-configurations:w
      - o{params.orgId}-configurations:r
      - o{params.orgId}-outboundWebhooks:w
      - o{params.orgId}-outboundWebhooks:r
      - o:w
      - o:r
      - s-o:w
      - s-o:r
  /orgs/{orgId}/hookEvents/{hookEventId}:
    get:
      summary: Describe a hook event
      operationId: describeHookEvent
      description: '__JWT is required for this endpoint with at least one of the following scopes__: o{params.orgId}-configurations:w,o{params.orgId}-configurations:r,o{params.orgId}-outboundWebhooks:w,o{params.orgId}-outboundWebhooks:r,o:w,o:r,s-o:w,s-o:r<br/><br/>__Endpoint name__: describeHookEvent'
      parameters:
      - type: integer
        name: orgId
        in: path
        required: true
      - type: integer
        name: hookEventId
        in: path
        required: true
      consumes:
      - application/json
      produces:
      - application/json
      tags:
      - orgs/hookEvents
      security:
      - jwt: []
      responses:
        '200':
          schema:
            type: object
            properties:
              data:
                type: object
                properties:
                  id:
                    type: number
                  name:
                    type: string
                  description:
                    type: string
                  hookEventLocation:
                    type: object
                    properties:
                      id:
                        type: number
                      name:
                        type: string
                      acceptsTargetUrl:
                        type: boolean
                      acceptsHookAction:
                        type: boolean
                    required:
                    - id
                  hookEventLocations:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: number
                        name:
                          type: string
                        acceptsTargetUrl:
                          type: boolean
                        acceptsHookAction:
                          type: boolean
                      required:
                      - id
                  requiredFeature:
                    x-nullable: true
                    type: object
                    properties:
                      id:
                        type: integer
                      code:
                        type: string
                    required:
                    - id
                  isCloudRecorded:
                    type: boolean
                  fieldMap:
                    x-nullable: true
                    type: object
                  flags:
                    x-nullable: true
                    type: object
                required:
                - id
                - isCloudRecorded
              meta:
                type: object
                properties:
                  accessToken:
                    x-nullable: true
                    type: object
                    properties:
                      scopeUpdatedAt:
                        type: string
                        format: date
                  siteSpecificAccess:
                    x-nullable: true
                    type: object
                    properties:
                      isSiteSpecific:
                        type: boolean
                      siteIds:
                        x-nullable: true
                        type: array
                        items:
                          type: integer
                      siteIdsByScope:
                        type: object
                        properties:
                          string:
                            x-nullable: true
                            type: array
                            items:
                              type: integer
                        x-nullable: true
          description: Successful
      x-op-scopes:
      - o{params.orgId}-configurations:w
      - o{params.orgId}-configurations:r
      - o{params.orgId}-outboundWebhooks:w
      - o{params.orgId}-outboundWebhooks:r
      - o:w
      - o:r
      - s-o:w
      - s-o:r
securityDefinitions:
  jwt:
    type: apiKey
    name: Authorization
    in: header
x-proxy-enabled: false