> ## 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.

# Reauthenticate a user's wallbox

> Reauthenticate a wallbox related to a specific user under a specific organization.



## OpenAPI

````yaml https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes/{wallbox_id}/auth_session
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}/users/{user_id}/wallboxes/{wallbox_id}/auth_session:
    post:
      tags:
        - User Wallboxes
      summary: Reauthenticate a user's wallbox
      description: >-
        Reauthenticate a wallbox related to a specific user under a specific
        organization.
      operationId: >-
        integrations_api_api_v2_organizations_users_wallboxes_router_auth_session
      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
        - in: path
          name: user_id
          schema:
            description: The user ID of the user whom the wallbox belongs to
            format: uuid
            title: User Id
            type: string
          required: true
          description: The user ID of the user whom the wallbox belongs to
        - in: path
          name: wallbox_id
          schema:
            description: The ID of the wallbox to be reauthenticated
            format: uuid
            title: Wallbox Id
            type: string
          required: true
          description: The ID of the wallbox to be reauthenticated
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthSessionInput'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthSessionOutput'
      security:
        - OAuth2: []
components:
  schemas:
    AuthSessionInput:
      properties:
        success_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Success Url
        cancel_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Cancel Url
      title: AuthSessionInput
      type: object
    AuthSessionOutput:
      properties:
        authentication_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Authentication Url
        device_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Device Id
        session_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Session Id
      title: AuthSessionOutput
      type: object
  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.