Skip to content

Authorize

Request authorization

POST https://mango.protokol.io/v2/api/component/{ref}/auth

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
  • modelUuid string required

Body parameters

Fields configured in component settings auth section

Response

 400 Bad Request 

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

 {
  "code": 0,
  "message": "",
  "request_id": "",
  "status": false
 } 
 417 Conflict - Validation failed 

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

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