Authentication

Prerequisites

Before you begin, ensure you have the following:

  • A valid LoudCrowd application login. This should be provided at kickoff. Please contact your team owner or LoudCrowd support if you need access.
  • A method to securely store and manage your API key.

Creating an Account-Scoped Access Token

An account's owner can create new account-scoped access tokens via the API Tokens settings page. They can also view or invalidate existing tokens (i.e., prevent them from being used for client requests). To obtain a Bearer token for authentication, follow these steps:

  1. Log in to app.loudcrowd.com and navigate to the API Tokens settings page.
  2. Click Create API Token in the upper right corner of the page.
  3. Enter a name for your token.
  1. Copy the token for use. Be sure to store this securely.

Making Authenticated API Requests

Once you have a Bearer token, you can include it in the Authorization header of your API requests to authenticate with the LoudCrowd Storefront API. The format for the Authorization header is as follows:

Authorization: Bearer <your_bearer_token>

Replace <your_bearer_token> with the actual Bearer token you obtained from the LoudCrowd authentication server.


Example Request

Here's an example of an API request with the Bearer token included in the Authorization header:

GET https://store-api.loudcrowd.com/api/StorefrontAmbassador HTTP/1.1
Host: store-api.loudcrowd.com
Authorization: Bearer <your_bearer_token>

Important Considerations

  • Security: Carefully handle your API key and Bearer token. Treat them as sensitive information, and never share them publicly.
  • Token Expiration: Bearer tokens do not have an expiration time. However, if your token is compromised, you must deactivate the existing one and repeat the authentication process to obtain a new one.
  • Error Handling: Be prepared to handle authentication errors gracefully in your application.

Troubleshooting

If you encounter authentication issues, refer to the LoudCrowd Storefront API documentation for troubleshooting tips or contact LoudCrowd support for assistance.