curl --request POST \
--url http://co-mind-platform-host/v1/auth/refresh \
--header 'Content-Type: application/json' \
--data '
{
"refresh_token": "<string>"
}
'{
"access_token": "<string>",
"refresh_token": "<string>",
"token_type": "bearer",
"expires_in": 3600,
"user": {
"id": "user_abc123",
"email": "user@example.com",
"username": "johndoe",
"confirmed": true,
"created_at": "2023-11-07T05:31:56Z"
}
}Get a new access token using a refresh token.
curl --request POST \
--url http://co-mind-platform-host/v1/auth/refresh \
--header 'Content-Type: application/json' \
--data '
{
"refresh_token": "<string>"
}
'{
"access_token": "<string>",
"refresh_token": "<string>",
"token_type": "bearer",
"expires_in": 3600,
"user": {
"id": "user_abc123",
"email": "user@example.com",
"username": "johndoe",
"confirmed": true,
"created_at": "2023-11-07T05:31:56Z"
}
}The refresh token from login