openapi: 3.2.0 info: title: Happyrobot Public Events API description: Public API endpoints for Happyrobot version: 0.1.1 servers: - url: https://platform.happyrobot.ai/api/v2 security: - bearerAuth: [] tags: - name: Events paths: /events/{event_id}/config-schema: get: summary: Get config schema for an event tags: - Events description: Returns the configuration schema for an event, including field types, required fields, defaults, and available options. Use this to inspect what an event expects before creating a node. parameters: - schema: type: string format: uuid pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$ in: path name: event_id required: true description: The event ID security: - bearerAuth: [] responses: '200': description: Default Response content: application/json: schema: type: object properties: data: type: object properties: event_id: type: string format: uuid pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$ event_name: type: string fields: type: array items: $ref: '#/components/schemas/schema0' defaults: type: - object - 'null' additionalProperties: {} available_options: type: - object - 'null' properties: models: type: array items: type: object properties: id: type: string name: type: string description: type: string required: - id - name additionalProperties: false phone_numbers: type: array items: type: object properties: id: type: string name: type: string number: type: string required: - id - name - number additionalProperties: false voices: type: array items: type: object properties: id: type: string name: type: string language: type: string gender: type: string required: - id - name - language - gender additionalProperties: false languages: type: array items: type: object properties: id: type: string name: type: string required: - id - name additionalProperties: false credentials: type: array items: type: object properties: id: type: string title: type: string required: - id - title additionalProperties: false additionalProperties: false required: - event_id - event_name - fields - defaults - available_options additionalProperties: false required: - data additionalProperties: false '400': description: Default Response content: application/json: schema: type: object properties: error: type: string message: type: string statusCode: type: integer minimum: -9007199254740991 maximum: 9007199254740991 details: {} required: - error additionalProperties: false '401': description: Default Response content: application/json: schema: type: object properties: error: type: string message: type: string statusCode: type: integer minimum: -9007199254740991 maximum: 9007199254740991 details: {} required: - error additionalProperties: false '404': description: Default Response content: application/json: schema: type: object properties: error: type: string message: type: string statusCode: type: integer minimum: -9007199254740991 maximum: 9007199254740991 details: {} required: - error additionalProperties: false '500': description: Default Response content: application/json: schema: type: object properties: error: type: string message: type: string statusCode: type: integer minimum: -9007199254740991 maximum: 9007199254740991 details: {} required: - error additionalProperties: false components: securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: Opaque