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

# Authentication

> Allows users to securely authenticate with API credentials through Auth0, and in return, provides a JSON Web Token (JWT) that can be used to access the rest of the API endpoints.



## OpenAPI

````yaml staking/openapi/staking-api.yaml POST /oauth/token
openapi: 3.0.3
info:
  title: Validation Cloud Staking API
  version: 1.0.0
servers:
  - url: https://ethereum-staking.sprd.validationcloud.io
security:
  - bearerAuth: []
paths:
  /oauth/token:
    post:
      tags:
        - Authentication
      description: >-
        Allows users to securely authenticate with API credentials through
        Auth0, and in return, provides a JSON Web Token (JWT) that can be used
        to access the rest of the API endpoints.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetTokenRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTokenResponse'
      servers:
        - url: https://validationcloud.us.auth0.com
components:
  schemas:
    GetTokenRequest:
      type: object
      properties:
        client_id:
          type: string
        client_secret:
          type: string
        grant_type:
          type: string
          default: client_credentials
          enum:
            - client_credentials
        audience:
          type: string
          default: staking
          enum:
            - staking
    GetTokenResponse:
      type: object
      properties:
        access_token:
          type: string
        scope:
          type: string
        expires_in:
          type: string
        token_type:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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