Authentication
Basic Authentication
To authenticate against SD Elements using basic authentication (username and password), you need to pass a Base64 encoding of your username:password as a header.
GET /api/v2/users/ HTTP/1.1
Accept: application/json
Authorization: Basic "YOUR BASE64 ENCODING OF USERNAME:PASSWORD"
Session Authorization
To authenticate against SD Elements using session authentication, you need to pass in your session id as a cookie in the header.
GET /api/v2/users/ HTTP/1.1
Accept: application/json
Cookie: sde-sessionid="YOUR SESSION ID"
Token Authentication
To authenticate against SD Elements using tokens, you need to pass an API access token via an Authorization
header.
A token can be generated as follows:
- Go to the menu option in the top right of SD Elements:
/API Settings - Select the APIv2 tab and click on the Generate Token Button.
- The token will be displayed only once. If you forget your token you will need to regenerate a new one.
GET /api/v2/users/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"