openapi: 3.2.0 info: title: AutoGPT Agent Server Invitations API summary: AutoGPT Agent Server description: This server is used to execute agents that are created by the AutoGPT system. version: '0.1' tags: - name: Invitations paths: /api/invitations/pending: get: tags: - Invitations summary: List pending invitations for current user operationId: getV2ListPendingInvitationsForCurrentUser responses: '200': description: Successful Response content: application/json: schema: items: $ref: '#/components/schemas/InvitationResponse' type: array title: Response Getv2List Pending Invitations For Current User '401': $ref: '#/components/responses/HTTP401NotAuthenticatedError' security: - HTTPBearerJWT: [] x-operation-id-source: normalized x-operation-id-original: getV2List pending invitations for current user /api/invitations/{token}/accept: post: tags: - Invitations summary: Accept invitation operationId: postV2AcceptInvitation security: - HTTPBearerJWT: [] parameters: - name: token in: path required: true schema: type: string title: Token responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response Postv2Accept Invitation '401': $ref: '#/components/responses/HTTP401NotAuthenticatedError' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' x-operation-id-source: normalized x-operation-id-original: postV2Accept invitation /api/invitations/{token}/decline: post: tags: - Invitations summary: Decline invitation operationId: postV2DeclineInvitation security: - HTTPBearerJWT: [] parameters: - name: token in: path required: true schema: type: string title: Token responses: '204': description: Successful Response '401': $ref: '#/components/responses/HTTP401NotAuthenticatedError' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' x-operation-id-source: normalized x-operation-id-original: postV2Decline invitation components: schemas: HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError InvitationResponse: properties: id: type: string title: Id email: type: string title: Email is_admin: type: boolean title: Is Admin is_billing_manager: type: boolean title: Is Billing Manager expires_at: type: string format: date-time title: Expires At created_at: type: string format: date-time title: Created At team_ids: items: type: string type: array title: Team Ids type: object required: - id - email - is_admin - is_billing_manager - expires_at - created_at - team_ids title: InvitationResponse 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 responses: HTTP401NotAuthenticatedError: description: Authentication required content: application/json: schema: type: object properties: detail: type: string securitySchemes: APIKeyAuthenticator-X-Postmark-Webhook-Token: type: apiKey in: header name: X-Postmark-Webhook-Token HTTPBearer: type: http scheme: bearer HTTPBearerJWT: type: http scheme: bearer bearerFormat: jwt