openapi: 3.0.3 info: title: Docupilot accounts APIs ai team 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: team paths: /accounts/team/: get: operationId: list_all_team_members summary: List all team members parameters: - name: ordering required: false in: query description: Which field to use when ordering the results. schema: type: string - in: query name: role schema: type: string enum: - admin - member - owner tags: - team security: - SessionAuthentication: [] responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/TeamMember' description: '' '401': content: application/json: schema: $ref: '#/components/schemas/UnauthenticatedError' description: '' '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenError' description: '' /accounts/team/{id}/change_role/: put: operationId: change_role_of_team_member summary: Change role of team member at organization level. parameters: - in: path name: id schema: type: integer required: true tags: - team requestBody: content: application/json: schema: $ref: '#/components/schemas/ChangeRole' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/ChangeRole' multipart/form-data: schema: $ref: '#/components/schemas/ChangeRole' required: true security: - SessionAuthentication: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/TeamMember' 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: '' /accounts/team/{id}/toggle_user_status/: patch: operationId: toggle_user_status summary: Activate or Deactivate a User parameters: - in: path name: id schema: type: integer required: true tags: - team security: - SessionAuthentication: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/TeamMember' 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: '' /accounts/team/transfer_ownership/: put: operationId: transfer_ownership_to_admin_user summary: Transfer Ownership To Admin User tags: - team requestBody: content: application/json: schema: $ref: '#/components/schemas/TransferOwnership' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/TransferOwnership' multipart/form-data: schema: $ref: '#/components/schemas/TransferOwnership' required: true 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: '' /dashboard/accounts/v2/team/: get: operationId: list_all_team_members summary: List all team members parameters: - in: header name: X-Workspace schema: type: string description: Workspace unique_key required: true - name: ordering required: false in: query description: Which field to use when ordering the results. schema: type: string - in: query name: role schema: type: string enum: - admin - billing_manager - manager - member - owner tags: - team security: - OAuthAuthentication: [] - SessionAuthentication: [] - tokenAuth: [] responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/TeamMember_2' description: '' '401': content: application/json: schema: $ref: '#/components/schemas/UnauthenticatedError_2' description: '' '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenError_2' description: '' /dashboard/accounts/v2/team/{id}/change_role/: put: operationId: change_role_of_team_member summary: Change role of team member. parameters: - in: header name: X-Workspace schema: type: string description: Workspace unique_key required: true - in: path name: id schema: type: string required: true tags: - team requestBody: content: application/json: schema: $ref: '#/components/schemas/ChangeRole_2' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/ChangeRole_2' multipart/form-data: schema: $ref: '#/components/schemas/ChangeRole_2' required: true security: - OAuthAuthentication: [] - SessionAuthentication: [] - tokenAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/TeamMember_2' description: '' '400': content: application/json: schema: $ref: '#/components/schemas/ValidationError_2' description: '' '401': content: application/json: schema: $ref: '#/components/schemas/UnauthenticatedError_2' description: '' '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenError_2' description: '' '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundError_2' description: '' /dashboard/accounts/v2/team/{id}/toggle_user_status/: patch: operationId: toggle_user_status summary: Activate or Deactivate a User parameters: - in: header name: X-Workspace schema: type: string description: Workspace unique_key required: true - in: path name: id schema: type: integer required: true tags: - team security: - OAuthAuthentication: [] - SessionAuthentication: [] - tokenAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/TeamMember_2' description: '' '400': content: application/json: schema: $ref: '#/components/schemas/ValidationError_2' description: '' '401': content: application/json: schema: $ref: '#/components/schemas/UnauthenticatedError_2' description: '' '403': content: application/json: schema: $ref: '#/components/schemas/ForbiddenError_2' description: '' '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundError_2' description: '' components: schemas: UnauthenticatedError: type: object properties: detail: type: string required: - detail ValidationError: type: object properties: errors: type: object additionalProperties: {} non_field_errors: type: array items: type: string required: - errors - non_field_errors ForbiddenError: type: object properties: detail: type: string required: - detail ValidationError_2: 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: '' ChangeRole: type: object properties: role: enum: - admin - member type: string required: - role NotFoundError_2: type: object properties: detail: type: string required: - detail description: '' ChangeRole_2: type: object properties: role: enum: - owner - admin - manager - member - billing_manager type: string required: - role description: '' User: type: object properties: id: type: integer readOnly: true guid: type: string format: uuid readOnly: true description: globally unique identifier for user first_name: type: string readOnly: true last_name: type: string readOnly: true email: type: string format: email readOnly: true timezone: enum: - Pacific/Midway - America/Adak - Pacific/Honolulu - Pacific/Marquesas - America/Anchorage - America/Tijuana - America/Los_Angeles - America/Phoenix - America/Chihuahua - America/Denver - America/Belize - America/Chicago - Pacific/Easter - America/Mexico_City - America/Regina - America/Bogota - America/Cancun - America/New_York - America/Port-au-Prince - America/Havana - America/Indiana/Indianapolis - America/Asuncion - America/Halifax - America/Caracas - America/Cuiaba - America/Manaus - America/Santiago - America/Grand_Turk - America/St_Johns - America/Fortaleza - America/Sao_Paulo - America/Cayenne - America/Buenos_Aires - America/Godthab - America/Montevideo - America/Miquelon - America/Bahia - America/Noronha - Atlantic/Azores - Atlantic/Cape_Verde - UTC - Africa/Casablanca - Europe/London - Africa/Monrovia - Europe/Amsterdam - Europe/Belgrade - Europe/Brussels - Europe/Warsaw - Africa/Algiers - Africa/Windhoek - Asia/Amman - Europe/Athens - Asia/Beirut - Africa/Cairo - Asia/Damascus - Asia/Gaza - Africa/Harare - Europe/Helsinki - Asia/Jerusalem - Europe/Kaliningrad - Africa/Tripoli - Asia/Baghdad - Asia/Istanbul - Asia/Kuwait - Europe/Minsk - Europe/Moscow - Africa/Nairobi - Asia/Tehran - Asia/Muscat - Europe/Astrakhan - Asia/Baku - Europe/Samara - Indian/Mauritius - Asia/Tbilisi - Asia/Yerevan - Asia/Kabul - Asia/Tashkent - Asia/Yekaterinburg - Asia/Karachi - Asia/Kolkata - Asia/Colombo - Asia/Katmandu - Asia/Almaty - Asia/Dhaka - Asia/Rangoon - Asia/Novosibirsk - Asia/Bangkok - Asia/Barnaul - Asia/Hovd - Asia/Krasnoyarsk - Asia/Tomsk - Asia/Chongqing - Asia/Irkutsk - Asia/Kuala_Lumpur - Australia/Perth - Asia/Taipei - Asia/Ulaanbaatar - Asia/Pyongyang - Australia/Eucla - Asia/Chita - Asia/Tokyo - Asia/Seoul - Asia/Yakutsk - Australia/Adelaide - Australia/Darwin - Australia/Brisbane - Australia/Canberra - Pacific/Guam - Australia/Hobart - Asia/Vladivostok - Australia/Lord_Howe - Pacific/Bougainville - Asia/Srednekolymsk - Asia/Magadan - Pacific/Norfolk - Asia/Sakhalin - Pacific/Guadalcanal - Asia/Anadyr - Pacific/Auckland - Pacific/Fiji - Pacific/Chatham - Pacific/Tongatapu - Pacific/Apia - Pacific/Kiritimati type: string readOnly: true locale: type: string readOnly: true nullable: true theme: enum: - light - dark - system type: string readOnly: true g2_verified: type: boolean readOnly: true role: enum: - owner - admin - member type: string readOnly: true is_mfa_enabled: type: boolean readOnly: true required: - email - first_name - g2_verified - guid - id - is_mfa_enabled - last_name - locale - role - theme - timezone description: '' TeamMember_2: type: object properties: id: type: integer readOnly: true user: allOf: - $ref: '#/components/schemas/User' readOnly: true role: enum: - owner - admin - manager - member - billing_manager type: string deactivated_at: type: string format: date-time nullable: true required: - id - user description: '' TeamMember: type: object properties: id: type: integer readOnly: true first_name: type: string maxLength: 50 last_name: type: string maxLength: 50 email: type: string format: email maxLength: 255 role: enum: - owner - admin - member type: string is_active: type: boolean title: Active description: Designates whether this user should be treated as active. Unselect this instead of deleting accounts. workspaces: type: array items: $ref: '#/components/schemas/Workspace' readOnly: true required: - email - id - workspaces Workspace: type: object properties: id: type: integer name: type: string role: enum: - owner - admin - manager - member - billing_manager type: string unique_key: type: string plan: type: string users: type: integer plan_status: type: string required: - id - name - plan - plan_status - unique_key - users NotFoundError: type: object properties: detail: type: string required: - detail TransferOwnership: type: object properties: transfer_to: type: integer otp: type: string maxLength: 6 minLength: 6 required: - otp - transfer_to UnauthenticatedError_2: type: object properties: detail: type: string required: - detail description: '' ForbiddenError_2: 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