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

# Create Staking Request

> Validates and creates a PENDING staking request for the caller's grant against the active staking configuration.

Not available to API keys.

## OpenAPI

````yaml api-reference/openapi.json POST /platform/create-staking-request
openapi: 3.1.0
info:
  title: Toku API
  version: 1.0.0
servers:
  - url: https://api.toku.com
security:
  - bearerAuth: []
paths:
  /platform/create-staking-request:
    post:
      operationId: createStakingRequest
      summary: Create Staking Request
      description: >-
        Validates and creates a PENDING staking request for the caller's grant
        against the active staking configuration.


        Not available to API keys.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateStakingRequestRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateStakingRequestResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '409':
          description: Conflict
        '429':
          description: Response 429
components:
  schemas:
    CreateStakingRequestRequest:
      type: object
      properties:
        stakingAmount:
          type: string
          pattern: ^\d+(?:\.\d+)?$
          description: >-
            NOTE(ck): a .refine() rule is not mirrored here; TGA still enforces
            it

            NOTE(ck): a .transform() rule is not mirrored here; TGA still
            enforces it
        grantID:
          type: string
          format: uuid
      required:
        - stakingAmount
        - grantID
    CreateStakingRequestResponse:
      type: object
      properties:
        isValid:
          type: boolean
        stakingRequest:
          type:
            - object
            - 'null'
          properties:
            stakingRequestID:
              type: string
            stakingConfigurationID:
              type: string
            roleInOrgID:
              type: string
            stakingAmount:
              type: string
              pattern: ^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?$
            stakingBalance:
              type: string
              pattern: ^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?$
            stakingStartDate:
              type: string
            stakingStatus:
              type: string
              enum:
                - DRAFT
                - PENDING
                - APPROVED
                - REJECTED
                - CANCELLED
                - IN_STAKING
                - UNSTAKE_REQUEST_PLACED
                - STAKING_PERIOD_COMPLETED
                - COMPLETED
            createdAt:
              type: string
            grantID:
              type: string
            updatedAt:
              type: string
            stakingDistributionID:
              type:
                - string
                - 'null'
          required:
            - stakingRequestID
            - stakingConfigurationID
            - roleInOrgID
            - stakingAmount
            - stakingBalance
            - stakingStartDate
            - stakingStatus
            - createdAt
            - grantID
            - updatedAt
            - stakingDistributionID
        message:
          type: string
      required:
        - isValid
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
````
