Project Secret API
This API returns the Project-level AppSecretKey used by the application-message signature design.
Definition
| Item | Value |
|---|---|
| Service | IOT.Access |
| Endpoint | /api/ProjectSecret/GenerateAppSecretKey |
| Authentication | Bearer Token |
| Parameter | ProjectCode — String |
| Response | AppSecretKey — String |
| HTTP method | Needs Verification |
The parameter location, base URL, response wrapper, success status, and error schema are not specified.
Behavior
- An authenticated Project user invokes the API with
ProjectCode. - If the Project has no key, the service generates an
AppSecretKey. - If the Project already has a key, the service returns the existing key.
The source describes all Project users as permitted to call this API.
An AppSecretKey is shared at Project scope. Returning the existing secret to every Project user increases the impact of any compromised user account. The distribution and authorization policy, secret storage requirements, rotation, revocation, and audit behavior require review before this design is treated as a production security guarantee.
Do not place a real key, access token, or credential in logs, examples, tickets, or client-side source repositories.
Example shape only
Because the HTTP method and parameter location are unspecified, this is not a callable HTTP example:
Endpoint: /api/ProjectSecret/GenerateAppSecretKey
Authentication: Bearer Token
Input field: ProjectCode (String)
Output field: AppSecretKey (String)