openapi: 3.0.3 info: title: Docupilot accounts APIs ai invitations API version: '1.0' description: Docupilot accounts APIs termsOfService: https://docupilot.app/terms-and-conditions/ contact: name: Team Docupilot email: support@docupilot.app tags: - name: invitations paths: /dashboard/accounts/v2/invitations/: get: operationId: list_invitation summary: Get list of Invitation parameters: - in: header name: X-Workspace schema: type: string description: Workspace unique_key required: true - in: query name: is_accepted schema: type: boolean - name: ordering required: false in: query description: Which field to use when ordering the results. schema: type: string - name: search required: false in: query description: A search term. schema: type: string tags: - invitations security: - SessionAuthentication: [] responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/Invitation' description: '' '401': content: application/json: schema: $ref: '#/components/schemas/UnauthenticatedError' description: '' '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenError' description: '' post: operationId: create_invitation summary: Create Invitation parameters: - in: header name: X-Workspace schema: type: string description: Workspace unique_key required: true tags: - invitations requestBody: content: application/json: schema: $ref: '#/components/schemas/Invitation' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/Invitation' multipart/form-data: schema: $ref: '#/components/schemas/Invitation' required: true security: - SessionAuthentication: [] responses: '201': content: application/json: schema: $ref: '#/components/schemas/Invitation' description: '' '400': content: application/json: schema: $ref: '#/components/schemas/ValidationError' description: '' '401': content: application/json: schema: $ref: '#/components/schemas/UnauthenticatedError' description: '' '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenError' description: '' /dashboard/accounts/v2/invitations/{id}/: delete: operationId: delete_invitation summary: Delete Invitation parameters: - in: header name: X-Workspace schema: type: string description: Workspace unique_key required: true - in: path name: id schema: type: integer description: A unique integer value identifying this invitation. required: true tags: - invitations security: - SessionAuthentication: [] responses: '204': description: No response body '400': content: application/json: schema: $ref: '#/components/schemas/ValidationError' description: '' '401': content: application/json: schema: $ref: '#/components/schemas/UnauthenticatedError' description: '' '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenError' description: '' '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundError' description: '' /dashboard/accounts/v2/invitations/{id}/resend_invitation/: post: operationId: resend_invitation summary: Resend invitation parameters: - in: header name: X-Workspace schema: type: string description: Workspace unique_key required: true - in: path name: id schema: type: integer description: A unique integer value identifying this invitation. required: true tags: - invitations security: - SessionAuthentication: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/Invitation' description: '' '400': content: application/json: schema: $ref: '#/components/schemas/ValidationError' description: '' '401': content: application/json: schema: $ref: '#/components/schemas/UnauthenticatedError' description: '' '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenError' description: '' '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundError' description: '' components: schemas: UnauthenticatedError: type: object properties: detail: type: string required: - detail description: '' ValidationError: type: object properties: errors: type: object additionalProperties: type: array items: type: string non_field_errors: type: array items: type: string required: - errors - non_field_errors description: '' ForbiddenError: type: object properties: detail: type: string required: - detail description: '' Invitation: type: object properties: id: type: integer readOnly: true email: type: string format: email maxLength: 254 role: enum: - admin - manager - member - billing_manager type: string created_at: type: string format: date-time readOnly: true expires_at: type: string format: date-time readOnly: true workspace: type: string readOnly: true is_accepted: type: boolean readOnly: true nullable: true invite_key: type: string readOnly: true sender: type: string readOnly: true expired: type: string readOnly: true required: - created_at - email - expired - expires_at - id - invite_key - is_accepted - role - sender - workspace description: '' NotFoundError: type: object properties: detail: type: string required: - detail description: '' securitySchemes: OAuthAuthentication: type: http scheme: bearer description: OAuth2 Bearer Token Authentication SessionAuthentication: type: apiKey in: cookie name: sessionid description: browser based login takes care of this externalDocs: description: Help docs on how to use API url: https://help.docupilot.app/developers/api-overview