Skip to content
  • Auto
  • Light
  • Dark
Get Started

Retrieve Credentials

List App User Credentials
client.Apps.AppUsers.GetCredentials(ctx, appUserID, params) (*ListarrayNextPageTokenstringAppAppUserGetCredentialsResponse, error)
get/api/v1/apps/{app_id}/app_users/{app_user_id}/credentials

Invokes the c1.api.app.v1.AppUserService.ListAppUserCredentials method.

Parameters
appUserIDstring

The appUserId field.

paramsAppIDfieldPageSizefieldPageTokenfieldAppAppUserGetCredentialsParams
Hide ParametersShow Parameters
AppIDfield
param.Field[string]

Path param: The appId field.

PageSizefield
optional
param.Field[int64]

Query param: The pageSize field.

formatint32
PageTokenfield
optional
param.Field[string]

Query param: The pageToken field.

Returns
AppAppUserGetCredentialsResponsestruct

The AppUserServiceListCredentialsResponse message.

Hide ParametersShow Parameters
Listarray
optional

The list field.

Hide ParametersShow Parameters
IDstring
optional

A unique identifier of the credential.

AppIDstring
optional

The ID of the application.

AppUserIDstring
optional

A unique identifier of the application user.

CreatedAtTime
optional
formatdate-time
DeletedAtTime
optional
formatdate-time
EncryptedDataDescriptionstringEncryptedBytesstringKeyIDstringNamestringProviderstringSchemastringAppAppUserGetCredentialsResponseListEncryptedData
optional

EncryptedData is a message that contains encrypted bytes and metadata.

Hide ParametersShow Parameters
Descriptionstring
optional

The human-readable description of the encrypted data.

EncryptedBytesstring
optional

The encrypted bytes.

formatbase64
KeyIDstring
optional

The key ID used to encrypt the data.

Namestring
optional

The human-readable name of the encrypted data.

Providerstring
optional

The encryption provider used to encrypt the data.

Schemastring
optional

The (optional) JSON schema of the encrypted data.

ExpiresAtTime
optional
formatdate-time
UpdatedAtTime
optional
formatdate-time
NextPageTokenstring
optional

The nextPageToken field.

Request example Go
package main

import (
  "context"
  "fmt"

  "github.com/stainless-sdks/-go"
  "github.com/stainless-sdks/-go/option"
)

func main() {
  client := conductoronesdk.NewClient(
    option.WithAPIKey("My API Key"),
  )
  response, err := client.Apps.AppUsers.GetCredentials(
    context.TODO(),
    "app_user_id",
    conductoronesdk.AppAppUserGetCredentialsParams{
      AppID: "app_id",
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.List)
}
200 Example
{
  "list": [
    {
      "encryptedData": {},
      "expiresAt": "2019-12-27T18:11:19.117Z"
    }
  ],
  "nextPageToken": "nextPageToken"
}