v1

latestOpenAPI 3.1.0© Copyright Partoo2026-07-26163503484.0 KB
Connection Tokens

Generate connection token

This endpoint lets you generate a connection token to authenticate a user without having to indicate its credentials. To be able to generate a connection token for a user, you need to have WRITE access on that user and that user cannot have PROVIDER role. A connection token is valid only once and has a time to live of maximum one day.

post/connection/generate_token

Request body

user_idstring required

User id

ttlinteger

Token time to live in seconds. It can be maximum 1 day.

Example request

{
  "user_id": "5309c3a237bbc544d8e26737",
  "ttl": 3600
}

Response

OK

tokenstring

New connection token

expiration_datestring date-time

Expiration date of the newly created token

Example response

{
  "token": "\\xaf3e8951c1f4c42f9cc53116b3fc855bd44bce01cf27604b",
  "expiration_date": "2019-08-01T19:15:54.256000+02:00"
}