Get a Credential
Last updated
Was this helpful?
Last updated
Was this helpful?
Returns a specified credential.
API key
Personal access token
Must also include the seam-workspace
header in the request.
To learn more, see Authentication.
acs_credential_id
String (Required)
ID of the credential that you want to get.
Specify the acs_credential_id
of the credential that you want to retrieve.
Code
await seam.acs.credentials.get({
acs_credential_id: "66666666-6666-6666-6666-666666666666",
});
Output
{
"acs_credential_id": "99999999-9999-9999-9999-999999999999",
"acs_user_id": "33333333-3333-3333-3333-333333333333",
"display_name": "Multi Phone Sync Credential",
"code": null,
"acs_system_id": "11111111-1111-1111-1111-111111111111",
"access_method": "mobile_key",
"workspace_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-04-12T03:56:22.396Z",
"is_multi_phone_sync_credential": true
}
Code
seam.acs.credentials.get(acs_credential_id="66666666-6666-6666-6666-666666666666")
Output
AcsCredential(
acs_credential_id="99999999-9999-9999-9999-999999999999",
acs_user_id="33333333-3333-3333-3333-333333333333",
display_name="Multi Phone Sync Credential",
code=None,
acs_system_id="11111111-1111-1111-1111-111111111111",
access_method="mobile_key",
workspace_id="00000000-0000-0000-0000-000000000000",
created_at="2024-04-12T03:56:22.396Z",
is_multi_phone_sync_credential=true,
)
Code
seam.acs.credentials.get(acs_credential_id: "66666666-6666-6666-6666-666666666666")
Output
{
"acs_credential_id" => "99999999-9999-9999-9999-999999999999",
"acs_user_id" => "33333333-3333-3333-3333-333333333333",
"display_name" => "Multi Phone Sync Credential",
"code" => nil,
"acs_system_id" => "11111111-1111-1111-1111-111111111111",
"access_method" => "mobile_key",
"workspace_id" => "00000000-0000-0000-0000-000000000000",
"created_at" => "2024-04-12T03:56:22.396Z",
"is_multi_phone_sync_credential" => true,
}
Code
<?php
$seam->acs->credentials->get(
acs_credential_id: "66666666-6666-6666-6666-666666666666"
);
Output
<?php
[
"acs_credential_id" => "99999999-9999-9999-9999-999999999999",
"acs_user_id" => "33333333-3333-3333-3333-333333333333",
"display_name" => "Multi Phone Sync Credential",
"code" => null,
"acs_system_id" => "11111111-1111-1111-1111-111111111111",
"access_method" => "mobile_key",
"workspace_id" => "00000000-0000-0000-0000-000000000000",
"created_at" => "2024-04-12T03:56:22.396Z",
"is_multi_phone_sync_credential" => true,
];
Code
seam acs credentials get --acs_credential_id "66666666-6666-6666-6666-666666666666"
Output
{
"acs_credential_id": "99999999-9999-9999-9999-999999999999",
"acs_user_id": "33333333-3333-3333-3333-333333333333",
"display_name": "Multi Phone Sync Credential",
"code": null,
"acs_system_id": "11111111-1111-1111-1111-111111111111",
"access_method": "mobile_key",
"workspace_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-04-12T03:56:22.396Z",
"is_multi_phone_sync_credential": true
}
Code
package main
import api "github.com/seamapi/go"
import credentials "github.com/seamapi/go/credentials"
func main() {
client.Acs.Credentials.Get(
context.Background(),
credentials.CredentialsGetRequest{
AcsCredentialId: api.String("66666666-6666-6666-6666-666666666666"),
},
)
}
Output
api.AcsCredential{AcsCredentialId: "99999999-9999-9999-9999-999999999999", AcsUserId: "33333333-3333-3333-3333-333333333333", DisplayName: "Multi Phone Sync Credential", Code: nil, AcsSystemId: "11111111-1111-1111-1111-111111111111", AccessMethod: "mobile_key", WorkspaceId: "00000000-0000-0000-0000-000000000000", CreatedAt: "2024-04-12T03:56:22.396Z", IsMultiPhoneSyncCredential: true}
Code
curl --include --request POST "https://connect.getseam.com/acs/credentials/get" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"acs_credential_id": "66666666-6666-6666-6666-666666666666"
}
EOF
Output
{
"acs_credential": {
"acs_credential_id": "99999999-9999-9999-9999-999999999999",
"acs_user_id": "33333333-3333-3333-3333-333333333333",
"display_name": "Multi Phone Sync Credential",
"code": null,
"acs_system_id": "11111111-1111-1111-1111-111111111111",
"access_method": "mobile_key",
"workspace_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-04-12T03:56:22.396Z",
"is_multi_phone_sync_credential": true
}
}