Skip to content

Auth Refresh

Refresh authorization

POST htts://mango.protokol.io/v1/api/component/{ref}/auth/refresh

Header parameters

  • X-Client-Id string required
  • X-Client-Secret string required
  • X-Auth-Token string - if component requires auth
  • X-Project-Env string - dev || live

Path parameters

  • ref string required - Reference to the components name, tag, uuid

Body parameters

  • refresh_token string required - Refresh token acquired on authentication

Response

 400 Bad Request 

 Content-Type: application/json 
 X-Project-Uuid: 4a9c28f9-18bd-4433-be2d-c3bbaf5355cd 

 {
  "code": 0,
  "message": "",
  "request_id": "",
  "status": false
 } 
 406 Not Accepted - Incorrect credentials 

 Content-Type: application/json 
 X-Project-Uuid: 4a9c28f9-18bd-4433-be2d-c3bbaf5355cd 

 {
  "code": 0,
  "errors": [],
  "status": false
}