Initialization

Initialization is a feature to generate the Platform Key required for the header when hitting API Access Platform. Initialization is using the registered platform key name. Then in the current new flow, the secret key is also added. This service will connect the access manager to the module from RabbitMq to GRPC.

Method : POST

Endpoint URL : https://{hostname}/access/v2/initialization


Header Request

Accept: application/json

Content-Type: application/json

Platform Key : {{platform_key}} Generate from initialization


  • Request Body
{
    "Platform" : "samaung"  //( platform key )
  	"Secret" : "EU5GSKNCRM8MR4YEMJKEIHO"
}

  • Response

👍

Success

{
    "Data": {
        "Platformkey": "ef907434a5724a3a59c09f148ks638nd6d300c6bd0741ae1b8c778cbb441551a3583047f20969267c85c8c42dd8d5fc6c6da9154705b413571dbbc63b47c2f4d94f89263ca07cfdf9a44124576641f3f5b8f40f09c614a10baa10f7f8a9af22f6847c82001"
    },
    "Message": "Platform Key found",
    "StatusCode": 200
}

❗️

Error

{
    "Code": 404,
    "Data": {},
    "Message": "Platform not found",
}


📘

Initialization Status Code

CodeStatusDescription
200OkSuccess Initialization
400Bad RequestInvalid data request
404Not FoundPlatform Key / Secret is not found


🚧

Notes

Secret key is the result of generating a platform name that is encrypted.

The current flow has an additional “Scope Platform” field that can be selected as “Private” or “Public”.