openapi: 3.2.0 info: title: Fast Sessions API version: 0.1.0 security: - bearer: [] - oauth2: - forms:read - forms:write tags: - name: Sessions paths: /sessions: post: summary: Create Session operationId: create_session_sessions_post requestBody: content: application/json: schema: $ref: '#/components/schemas/SessionCreate' required: true responses: '201': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Sessions /sessions/{sid}: get: summary: Get Session operationId: get_session_sessions__sid__get parameters: - name: sid in: path required: true schema: type: string format: uuid title: Sid responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Sessions /sessions/{sid}/fields: put: summary: Put Fields operationId: put_fields_sessions__sid__fields_put parameters: - name: sid in: path required: true schema: type: string format: uuid title: Sid requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/FieldsRequest' responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Sessions /sessions/{sid}/fill: post: summary: Fill operationId: fill_sessions__sid__fill_post parameters: - name: sid in: path required: true schema: type: string format: uuid title: Sid responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Sessions /sessions/{sid}/pdf: get: summary: Session Pdf operationId: session_pdf_sessions__sid__pdf_get parameters: - name: sid in: path required: true schema: type: string format: uuid title: Sid responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Sessions components: schemas: HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type input: title: Input ctx: type: object title: Context type: object required: - loc - msg - type title: ValidationError FieldUpdate: properties: field_id: type: integer title: Field Id value: anyOf: - type: string - type: 'null' title: Value type: object required: - field_id - value title: FieldUpdate FieldsRequest: properties: updates: items: $ref: '#/components/schemas/FieldUpdate' type: array title: Updates type: object required: - updates title: FieldsRequest SessionCreate: properties: form_id: type: string title: Form Id type: object required: - form_id title: SessionCreate securitySchemes: bearer: type: http scheme: bearer bearerFormat: Emboss API key (sk_...) description: An Emboss API key. See https://getemboss.ai/docs/authentication. oauth2: type: oauth2 description: Sign in with your Emboss account. See https://getemboss.ai/docs/authentication. flows: authorizationCode: authorizationUrl: https://api.getemboss.ai/oauth/authorize tokenUrl: https://api.getemboss.ai/oauth/token scopes: forms:read: Read your forms forms:write: Create and fill forms