> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wfa.team/llms.txt
> Use this file to discover all available pages before exploring further.

# Invite a staff member

> Create a pending compliance team member with the Approver role.



## OpenAPI

````yaml /openapi.json post /create_pending_user
openapi: 3.1.0
info:
  title: WFA API
  version: test
  description: >-
    Draft Bubble test contract. Required inputs, exact envelopes and HTTP error
    statuses need verification before production.
servers:
  - url: https://wfa-team-tool-v1.bubbleapps.io/version-test/api/1.1/wf
    description: Bubble test environment
security:
  - companyToken: []
paths:
  /create_pending_user:
    post:
      tags:
        - Staff
      summary: Invite a staff member
      description: Create a pending compliance team member with the Approver role.
      operationId: create_pending_user
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                first_name:
                  type: string
                  description: Staff member’s first name.
                  example: Alex
                last_name:
                  type: string
                  description: Staff member’s last name.
                  example: Taylor
                email:
                  type: string
                  description: Staff member’s invitation email address.
                  example: alex.taylor@example.com
                staff_id:
                  type: string
                  description: >-
                    Your external Staff ID; use it when referring to the person
                    in assessments.
                  example: STAFF-001
              required:
                - first_name
                - last_name
                - email
                - staff_id
            example:
              first_name: Alex
              last_name: Taylor
              email: alex.taylor@example.com
              staff_id: STAFF-001
      responses:
        '200':
          description: >-
            Workflow response. Check the JSON status: HTTP 200 can include an
            application error. Other HTTP error statuses have not yet been
            verified.
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      status:
                        type: string
                        enum:
                          - success
                      response:
                        type: object
                        properties:
                          user_id:
                            type: string
                            description: >-
                              Bubble user ID; distinct from your external
                              staff_id.
                  - type: object
                    properties:
                      status:
                        type: string
                        enum:
                          - error
                      success:
                        type: boolean
                        const: false
                      message:
                        type: string
                      errors:
                        type: array
                        items:
                          type: object
                          properties:
                            field:
                              type: string
                            message:
                              type: string
              examples:
                success:
                  summary: Success
                  value:
                    status: success
                    response:
                      user_id: <user-id>
                invalidToken:
                  summary: Invalid token
                  value:
                    status: error
                    success: false
                    message: Invalid authorization token
components:
  securitySchemes:
    companyToken:
      type: http
      scheme: bearer
      description: Your company API token. Keep it on your server.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.