openapi: 3.2.0 info: description: 'The API for Relay by Flume Health. For more information about how Flume can power your health plan, please [contact us](mailto:sales@flumehealth.com). [Redoc](/api/docs/) | [Swagger - Try It](/api/swagger/) ' title: Flume Console Flags API contact: {} version: '1.0' x-logo: altText: Flume Health url: https://public-static.flume.health/front/logo-margin-512.png servers: - url: https://console.flumehealth.com/ - url: http://console.flumehealth.com/ tags: - name: Flags paths: /api/v1/flags: get: description: Lists Flags. tags: - Flags summary: List Flags operationId: listFlags parameters: - description: X-Flume-Account-ID name: X-Flume-Account-ID in: header schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/flag.ListReadModel' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' default: description: '' content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' security: - OAuth2Implicit: - openid - profile - email post: description: Creates a Flag. tags: - Flags summary: Create Flag operationId: createFlag parameters: - description: X-Flume-Account-ID name: X-Flume-Account-ID in: header schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/flag.Flag' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' default: description: '' content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' security: - OAuth2Implicit: - openid - profile - email requestBody: content: application/json: schema: $ref: '#/components/schemas/flag.Flag' description: Flag Body required: true /api/v1/flags/{key}: get: description: Gets a Flag by key. tags: - Flags summary: Get Flag operationId: getFlag parameters: - description: X-Flume-Account-ID name: X-Flume-Account-ID in: header schema: type: string - description: key of the flag name: key in: path required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/flag.Flag' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' default: description: '' content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' security: - OAuth2Implicit: - openid - profile - email put: description: Updates a Flag. tags: - Flags summary: Update Flag operationId: updateFlag parameters: - description: X-Flume-Account-ID name: X-Flume-Account-ID in: header schema: type: string - description: key of the flag name: key in: path required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/flag.Flag' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' default: description: '' content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' security: - OAuth2Implicit: - openid - profile - email requestBody: content: application/json: schema: $ref: '#/components/schemas/flag.Flag' description: Flag Body required: true delete: description: Deletes a Flag. tags: - Flags summary: Delete Flag operationId: deleteFlag parameters: - description: X-Flume-Account-ID name: X-Flume-Account-ID in: header schema: type: string - description: key of the flag name: key in: path required: true schema: type: string responses: '200': description: OK '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' default: description: '' content: application/json: schema: $ref: '#/components/schemas/responses.ErrorResponse' security: - OAuth2Implicit: - openid - profile - email components: schemas: flag.ListReadModel: type: object properties: flags: type: array items: $ref: '#/components/schemas/flag.Flag' flag.Flag: type: object properties: key: type: string value: type: string responses.ErrorResponse: type: object properties: code: type: integer details: type: array items: type: string message: type: string securitySchemes: OAuth2Implicit: type: oauth2 flows: implicit: scopes: email: User email address openid: OpenID Connect scope profile: User profile information authorizationUrl: https://auth.flumehealth.com/authorize?audience=https://console.flumehealth.com/api