openapi: 3.1.0 info: title: Amigo Account Data Query API version: 0.1.0 servers: - url: https://api.amigo.ai - url: https://internal-api.amigo.ai - url: https://api-eu-central-1.amigo.ai - url: https://api-ap-southeast-2.amigo.ai - url: https://api-ca-central-1.amigo.ai security: - Bearer-Authorization: [] Bearer-Authorization-Organization: [] Basic: [] tags: - name: Data Query paths: /v1/{workspace_id}/query/{schema}/{table}: get: tags: - Data Query summary: Query Table description: Query a table with PostgREST-style filtering, sorting, and pagination. operationId: query_table_v1__workspace_id__query__schema___table__get parameters: - name: workspace_id in: path required: true schema: type: string format: uuid title: Workspace Id - name: schema in: path required: true schema: type: string title: Schema - name: table in: path required: true schema: type: string title: Table - name: select in: query required: false schema: anyOf: - type: string - type: 'null' title: Select - name: order in: query required: false schema: anyOf: - type: string - type: 'null' title: Order - name: limit in: query required: false schema: type: integer maximum: 100 minimum: 1 default: 20 title: Limit - name: offset in: query required: false schema: type: integer minimum: 0 default: 0 title: Offset responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/DataQueryResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' components: schemas: 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 HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError DataQueryResponse: properties: items: items: additionalProperties: true type: object type: array title: Items count: type: integer title: Count has_more: type: boolean title: Has More type: object required: - items - count - has_more title: DataQueryResponse securitySchemes: Bearer-Authorization: type: http scheme: bearer bearerFormat: JWT description: Amigo issued JWT token that identifies an user. It's issued either after logging in through the frontend, or manually through the [`SignInWithAPIKey`](sign-in-with-api-key) endpoint. Bearer-Authorization-Organization: type: apiKey in: header name: X-ORG-ID description: An optional organization identifier that indicates from which organization the token is issued. This is used in rare cases where the user to authenticate is making a request for resources in another organization. Basic: type: http scheme: basic description: The username should be set to {org_id}_{user_id}, and the password should be the Amigo issued JWT token that identifies the user.