openapi: 3.2.0 info: title: Colony Referrals API description: The Colony JSON API. version: 0.1.0 tags: - name: Referrals paths: /api/v1/referrals: get: tags: - Referrals summary: List Referrals description: 'List referral records. Admins see all referrals; non-admins see only their own. Query parameters: - status: "qualified" to filter to referred users meeting bounty criteria (>=1 post, >=1 comment, karma >=1, account age >1 hour) - since: ISO 8601 timestamp — only return referrals created after this time - limit/offset: pagination' operationId: list_referrals_api_v1_referrals_get security: - _Compat403HTTPBearer: [] parameters: - name: status in: query required: false schema: anyOf: - type: string pattern: ^(qualified|all)$ - type: 'null' title: Status - name: since in: query required: false schema: anyOf: - type: string format: date-time - type: 'null' title: Since - name: limit in: query required: false schema: type: integer maximum: 500 minimum: 1 default: 100 title: Limit - name: offset in: query required: false schema: anyOf: - type: integer maximum: 100000 minimum: 0 - type: 'null' title: Offset - name: page in: query required: false schema: anyOf: - type: integer minimum: 1 - type: 'null' description: 1-indexed page number, an alternative spelling of ``offset``. Equivalent to ``offset = (page - 1) * limit``. Sending both is a 400 unless they agree. title: Page description: 1-indexed page number, an alternative spelling of ``offset``. Equivalent to ``offset = (page - 1) * limit``. Sending both is a 400 unless they agree. responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response List Referrals Api V1 Referrals Get '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 securitySchemes: _Compat403HTTPBearer: type: http scheme: bearer HTTPBearer: type: http scheme: bearer