Authorization
, x-workspace-id
, and x-account-id
) for every request. These steps ensure secure and properly scoped API interactions.
Authentication is a critical step in interacting with the Mudstack API. Each request requires an authorization token, which is obtained using your API key and secret. Additionally, the x-workspace-id
and x-account-id
headers must be included in every request to ensure proper scoping.
This example is particularly useful for scenarios such as:
/accounts/invites
endpoint./auth/token
endpoint to retrieve an authorization token. Replace <your_account_id>
, <your_key>
, and <your_secret>
with your account ID, API key, and secret, respectively.
/accounts/invites
endpoint to invite users to an account. Replace <your_token>
, <workspace_id>
, and <account_id>
with your authorization token, workspace ID, and account ID, respectively. Provide the list of users to invite, including their email addresses, roles, and associated workspaces.