Authentication
The API supports authentication via ApiKey (Strongly Recommended) HTTPBasic (Up for deprecation), TokenAuth (Up for Deprecation). Except for the /get_token (up for deprecation) endpoint, which only supports HTTP Basic authentication.
ApiKey(Strongly Recommended) authentication allows you to use API keys generated in your Cloud Profile. This method is the only one that will work in all cases whether your user is part of more than one organizations, or whether your organization uses Single Sign-On (SSO) authentication. Provide your API Key ID and API Key Secret asX-API-KEY-IDandX-API-KEY-SECRETheaders, respectively. If you do not know how to generate your API Key and Secret pair follow the Configure and run Soda Library instructions.HTTPBasic(Up for deprecation) authentication requires you to provide your username and password as a Base64 encodedAuthorizationheader. Send your HTTP requests with anAuthorizationheader that contains the wordBasicfollowed by a space and a base64-encoded stringusername:password.TokenAuth(Up for deprecation) requires that you obtain a Soda token from the/get_tokenendpoint using your username and password in accordance with the HTTPBasic Authentication framework. This token has an expiration of 30 minutes. The/get_tokenendpoint makes this clear to you (see endpoint documentation below). You can then use this token to authenticate with any of the other endpoints.
Was this helpful?
