## List custom object types `client.Object.ListDefinitions(ctx) (*ObjectListDefinitionsResponse, error)` **get** `/v1/objects` Returns all custom object types available to the caller. ### Returns - `type ObjectListDefinitionsResponse struct{…}` - `Data []ObjectListDefinitionsResponseData` All object types available to the caller. - `Label string` Human-readable display name. - `ObjectType string` The slug used to reference this object type in the API. ### Example ```go package main import ( "context" "fmt" "github.com/Lightfld/lightfield-go" "github.com/Lightfld/lightfield-go/option" ) func main() { client := githubcomlightfldlightfieldgo.NewClient( option.WithAPIKey("My API Key"), ) objectListDefinitionsResponse, err := client.Object.ListDefinitions(context.TODO()) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", objectListDefinitionsResponse.Data) } ``` #### Response ```json { "data": [ { "label": "label", "objectType": "objectType" } ] } ```