(Embeds)
REST APIs for managing embeds
- GetEmbedAccessToken - Get an embed access token for the current workspace.
- GetValidEmbedAccessTokens - Get all valid embed access tokens for the current workspace.
- RevokeEmbedAccessToken - Revoke an embed access EmbedToken.
Returns an embed access token for the current workspace. This can be used to authenticate access to externally embedded content. Filters can be applied allowing views to be filtered to things like particular customerIds.
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
using System.Collections.Generic;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetEmbedAccessTokenRequest req = new GetEmbedAccessTokenRequest() {};
var res = await sdk.Embeds.GetEmbedAccessTokenAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
GetEmbedAccessTokenRequest | ✔️ | The request object to use for the request. |
Error Object | Status Code | Content Type |
---|---|---|
SpeakeasySDK.Models.Errors.SDKException | 4xx-5xx | / |
Get all valid embed access tokens for the current workspace.
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
var res = await sdk.Embeds.GetValidEmbedAccessTokensAsync();
// handle response
GetValidEmbedAccessTokensResponse
Error Object | Status Code | Content Type |
---|---|---|
SpeakeasySDK.Models.Errors.SDKException | 4xx-5xx | / |
Revoke an embed access EmbedToken.
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
RevokeEmbedAccessTokenRequest req = new RevokeEmbedAccessTokenRequest() {
TokenID = "<value>",
};
var res = await sdk.Embeds.RevokeEmbedAccessTokenAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
RevokeEmbedAccessTokenRequest | ✔️ | The request object to use for the request. |
RevokeEmbedAccessTokenResponse
Error Object | Status Code | Content Type |
---|---|---|
SpeakeasySDK.Models.Errors.SDKException | 4xx-5xx | / |