## Get a list by id `client.Prism.Lists.Get(ctx, listID, query) (*List, error)` **get** `/v2/prism/{teamId}/lists/{listId}` Get a list by id ### Parameters - `listID string` - `query PrismListGetParams` - `TeamID param.Field[string]` ### Returns - `type List struct{…}` - `ID string` - `Name string` - `ObjectType ListObjectType` Prism object type this list holds. - `const ListObjectTypeOrganization ListObjectType = "organization"` - `const ListObjectTypeIdentity ListObjectType = "identity"` - `const ListObjectTypeAction ListObjectType = "action"` - `const ListObjectTypeDocument ListObjectType = "document"` - `const ListObjectTypeDeal ListObjectType = "deal"` - `TeamID string` - `CreatedAt Time` - `Description string` - `Icon string` Emoji or icon key for the list. - `Type string` Internal template type (e.g. dealFlow, hiring). Derived from template_id on create. - `Views []ListView` - `ID string` - `Name string` ### Example ```go 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"), ) list, err := client.Prism.Lists.Get( context.TODO(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", micro.PrismListGetParams{ }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", list.ID) } ``` #### Response ```json { "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "name": "x", "object_type": "organization", "team_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "created_at": "2019-12-27T18:11:19.117Z", "description": "description", "icon": "icon", "type": "type", "views": [ { "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "name": "name" } ] } ```