Skip to content
Go to Micro

Get object

client.Prism.Objects.Identities.Get(ctx, identityID, params) (*PrismObjectIdentityGetResponse, error)
GET/v2/prism/{teamId}/identity/{identityId}

Get object

ParametersExpand Collapse
identityID string
formatuuid
params PrismObjectIdentityGetParams
TeamID param.Field[string]Optional

Path param

formatuuid
Select param.Field[string]Optional

Query param: Comma-separated property slugs to return. Use dot notation for relationships. id is always returned at the top level. Defaults to all properties.

ReturnsExpand Collapse
type PrismObjectIdentityGetResponse struct{…}

Object returned by reads (get/create/patch/restore). id is always present.

ID string
formatuuid
Default map[string, unknown]Optional

Properties keyed by property slug.

List unknownOptional

Get object

package main

import (
  "context"
  "fmt"

  "github.com/micro-so/micro-sdk-go"
  "github.com/micro-so/micro-sdk-go/option"
)

func main() {
  client := micro.NewClient(
    option.WithAPIKey("My API Key"),
    option.WithTeamID("My Team ID"),
  )
  identity, err := client.Prism.Objects.Identities.Get(
    context.TODO(),
    "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    micro.PrismObjectIdentityGetParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", identity.ID)
}
{
  "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "default": {
    "foo": "bar"
  },
  "list": {}
}
Returns Examples
{
  "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "default": {
    "foo": "bar"
  },
  "list": {}
}