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

# Invite User

> Invite a user to the organization by email, granting a member role on acceptance.

Sends an invitation email to the provided address. The email contains a signed
activation link that lands the recipient on the sign-up confirmation screen
pre-filled with the organization's invite token, so they join this organization
with the invited role when they complete sign-up. The actor can only invite at
or below its own privilege.

A ``podero_profile`` additionally designates the invitee a Podero user, granted when they
accept; only a Podero developer may send one.



## OpenAPI

````yaml https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/invitations
openapi: 3.1.0
info:
  title: Podero Partner API
  version: '2.0'
  description: >-
    This API provides a unified interaction point for Podero's partner
    companies.


    The goal of this API is to give partners easily integratable endpoints that
    don't require extensive software

    development. For this reason, the endpoints focus around user and device
    management, setting of preferences

    and high level device controls.


    While direct control of devices is implemented for special use cases such as
    pause power, we abstract away low level

    direct device steering so developers and partners can focus on delivering
    maximum value to end users.


    ## Authentication


    Send an OAuth2 access token in the `Authorization: Bearer <access_token>`
    header of each request.

    A token request must have a JSON body. The token endpoints do not read a
    form-encoded body.


    Server-to-server integrations use the client credentials grant:


    ```http

    POST /oauth2/token/

    Authorization: Basic base64(<client_id>:<client_secret>)

    Content-Type: application/json


    {"grant_type": "client_credentials"}

    ```


    The response does not contain a refresh token. The access token expires
    after `expires_in` seconds (one hour).

    To renew it, send the same request again. Use one token for all requests
    until shortly before it expires.

    Do not request a new token for each request. If a request returns `401`, get
    one new token and send the request

    again once. If it returns `401` again, the token is valid but the
    application has no access to that resource,

    and a new token does not change that.


    Apps where a person signs in use the password grant at `POST
    /api/partners/v2.0/auth/token`, and renew the

    session with the `refresh_token` grant at the same endpoint.
  termsOfService: https://www.podero.com/terms-and-conditions
servers: []
security: []
paths:
  /api/partners/v2.0/org/{org_id}/invitations:
    post:
      tags:
        - Organization
      summary: Invite User
      description: >-
        Invite a user to the organization by email, granting a member role on
        acceptance.


        Sends an invitation email to the provided address. The email contains a
        signed

        activation link that lands the recipient on the sign-up confirmation
        screen

        pre-filled with the organization's invite token, so they join this
        organization

        with the invited role when they complete sign-up. The actor can only
        invite at

        or below its own privilege.


        A ``podero_profile`` additionally designates the invitee a Podero user,
        granted when they

        accept; only a Podero developer may send one.
      operationId: integrations_api_api_v2_organizations_router_invite_user
      parameters:
        - in: path
          name: org_id
          schema:
            description: The organization ID of the user's organization
            format: uuid
            title: Org Id
            type: string
          required: true
          description: The organization ID of the user's organization
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrganizationInvitationInput'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationInvitationOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationInvitationOutputError'
      security:
        - OAuth2: []
components:
  schemas:
    OrganizationInvitationInput:
      properties:
        email:
          description: The user's email address
          format: email
          title: Email
          type: string
        role:
          allOf:
            - $ref: '#/components/schemas/Role'
          default: user
          description: >-
            The member role granted when the invitation is accepted. `staff` is
            a deprecated alias for `support`, normalised on the way in and
            removed in a future release; responses always carry `support`.
        podero_profile:
          anyOf:
            - $ref: '#/components/schemas/PoderoProfile'
            - type: 'null'
          description: >-
            Designates the invitee a Podero user, granted the profile when the
            invitation is accepted. Only a Podero developer may send one.
      required:
        - email
      title: OrganizationInvitationInput
      type: object
    OrganizationInvitationOutput:
      properties:
        user_email:
          title: User Email
          type: string
        email_id:
          format: uuid
          title: Email Id
          type: string
        invite_id:
          format: uuid
          title: Invite Id
          type: string
      required:
        - user_email
        - email_id
        - invite_id
      title: OrganizationInvitationOutput
      type: object
    OrganizationInvitationOutputError:
      properties:
        detail:
          title: Detail
          type: string
      required:
        - detail
      title: OrganizationInvitationOutputError
      type: object
    Role:
      enum:
        - admin
        - support
        - user
        - guest
      title: Role
      type: string
    PoderoProfile:
      description: >-
        Cumulative: ``developer`` ⊇ ``customer_ops`` ⊇ ``basic``. The values the
        profile facts

        carry, which is why they live with the facts.
      enum:
        - basic
        - customer_ops
        - developer
      title: PoderoProfile
      type: string
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        password:
          tokenUrl: /api/partners/v2.0/auth/token
          scopes: {}
        clientCredentials:
          tokenUrl: /oauth2/token/
          scopes: {}

````

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