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

# This is the endpoint to get a temporal token to set in the oauth2 header



## OpenAPI

````yaml /public/spi-banksv3.yaml post /oauth/token
openapi: 3.0.0
info:
  version: 1.0.1
  title: ACH TIN Bank Interface
servers:
  - url: https://bank.domain.com/v1
security: []
tags:
  - name: Credit
    description: Executes download on TIN Cloud side and credit on banking core
  - name: Debit
    description: Executes upload on TIN Cloud side and debit on banking core
  - name: Action
    description: Signs the operation
  - name: Status
    description: Notifies on status of operation
paths:
  /oauth/token:
    post:
      tags:
        - Token
      summary: This is the endpoint to get a temporal token to set in the oauth2 header
      operationId: getToken
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/tokenRequest'
        required: true
      responses:
        '200':
          description: Token fetched
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tokenResponse'
      security:
        - BasicAuth: []
        - XNonce: []
components:
  schemas:
    tokenRequest:
      type: object
      properties:
        grant_type:
          type: string
        client_id:
          type: string
        client_secret:
          type: string
    tokenResponse:
      type: object
      properties:
        access_token:
          type: string
        expires_in:
          type: integer
        token_type:
          type: string
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic

````