Skip to main content

Project Secret API

This API returns the Project-level AppSecretKey used by the application-message signature design.

Definition​

ItemValue
ServiceIOT.Access
Endpoint/api/ProjectSecret/GenerateAppSecretKey
AuthenticationBearer Token
ParameterProjectCode — String
ResponseAppSecretKey — String
HTTP methodNeeds Verification

The parameter location, base URL, response wrapper, success status, and error schema are not specified.

Behavior​

  1. An authenticated Project user invokes the API with ProjectCode.
  2. If the Project has no key, the service generates an AppSecretKey.
  3. 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.

Security review required

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)

See API authentication and Project digital signatures.