POST
/token/refresh/

Exchange a Cobru refresh token for a short-lived access token. The request body field is refresh, not refresh_token.

x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

refresh*string

Refresh token issued by Cobru

Response Body

application/json

application/json

curl -X POST "https://prod.cobru.co/token/refresh/" \  -H "Content-Type: application/json" \  -d '{    "refresh": "string"  }'
{
  "access": "string"
}
{
  "error": "Error en la creacion del cobru.",
  "detail": "payment_method_enabled must be a JSON string"
}