Skip to content

Creates a token (its value is only returned here)

POST/tokens

Requires: Cookie fret_session / Bearer

Request body

application/jsonobjectrequired

  • namestringrequired

    ≤ 60 chars

Responses

201Createdobject
  • Fields · 5
    • idinteger
    • namestring
    • prefixstring

      Start of the token, to recognise it

    • createdAtstring (date-time)
    • lastUsedAtstring (date-time) | null
  • secretstring
Built with Kiln