tonapi_service

Generate project TonAPI token

post/api/v1/services/tonapi/generate/token

Query parameters

project_idinteger required

Project ID

Request body

namestring required
limit_rpsnumber
originsstring[]
capabilitiesTokenCapability[]

Example request

{
  "name": "My token",
  "limit_rps": 5
}

Response

Project TonAPI token

Example response

{
  "token": {
    "id": 1,
    "name": "My token",
    "limit_rps": 5,
    "token": "AE5TZRWIIOR2O2YAAAAGFP2HEWFZJYBP222A567CBF6JIL7S4RIZSCOAZRZOEW7AKMRICGQ",
    "date_create": 1690889913000
  }
}

Changes

Changed in 8 of the 50 revisions of this API.347

  • bffcc11719d311See the full diff
    • removed the enum value mempool of the request property /

      request-property-enum-value-removed

    • removed the mempool enum value from the // response property for the response status

      response-property-enum-value-removed

  • af71bc81cc6d11See the full diff
    • added the new mempool enum value to the // response property for the response status

      response-property-enum-value-added

    • added the new mempool enum value to the request property /

      request-property-enum-value-added

  • bffcc11719d311See the full diff
    • added the new cocoon enum value to the // response property for the response status

      response-property-enum-value-added

    • added the new cocoon enum value to the request property /

      request-property-enum-value-added

    • the request property became not nullable

      request-property-became-not-nullable

    • the request property became not nullable

      request-property-became-not-nullable

    • the request property's max was set to 100000.00

      request-property-max-set

    • the request property's min was set to 0.00

      request-property-min-set

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new optional request property

      new-optional-request-property

    • added the optional property / to the response with the status

      response-optional-property-added

    • added the new optional request property

      new-optional-request-property

    • added the required property / to the response with the status

      response-required-property-added