## Create a meeting `client.Meeting.New(ctx, body) (*MeetingCreateResponse, error)` **post** `/v1/meetings` Creates a new meeting record. This endpoint only supports creation of meetings in the past. The `$title`, `$startDate`, and `$endDate` fields are required. Only the `$transcript` relationship is writable on create; all other meeting relationships are system-managed. The response is privacy-aware and includes a read-only `accessLevel`. See [Uploading meeting transcripts](/using-the-api/uploading-meeting-transcripts/) for the full file upload and transcript attachment flow. Supports idempotency via the `Idempotency-Key` header. **[Required scope](/using-the-api/scopes/):** `meetings:create` **[Rate limit category](/using-the-api/rate-limits/):** Write ### Parameters - `body MeetingNewParams` - `Fields param.Field[MeetingNewParamsFields]` Field values for the new MANUAL meeting. System fields use a `$` prefix (for example `$title`, `$startDate`, `$endDate`). Required: `$title`, `$startDate`, and `$endDate`. `$organizerEmail` accepts a single email address when provided; `$attendeeEmails` accepts an array of email addresses. See [Fields and relationships](/using-the-api/fields-and-relationships/) for value type details. - `EndDate string` The end time of the meeting in ISO 8601 format. Must be in the past. - `StartDate string` The start time of the meeting in ISO 8601 format. Must be in the past. - `Title string` The title of the meeting. - `AttendeeEmails []string` A list of attendee email addresses. - `Description string` A description of the meeting. - `MeetingURL string` The URL for the meeting. - `OrganizerEmail string` The email address of the meeting organizer. This field accepts a single email address. - `PrivacySetting string` The privacy setting for the meeting (`FULL` or `METADATA`). - `const MeetingNewParamsFieldsPrivacySettingFull MeetingNewParamsFieldsPrivacySetting = "FULL"` - `const MeetingNewParamsFieldsPrivacySettingMetadata MeetingNewParamsFieldsPrivacySetting = "METADATA"` - `AutoCreateRecords param.Field[bool]` When true, the initial post-create meeting sync may auto-create account and contact records for external attendees. - `Relationships param.Field[MeetingNewParamsRelationships]` Relationships to set on the new meeting. Only `$transcript` is writable on create; all other meeting relationships are system-managed. - `Transcript MeetingNewParamsRelationshipsTranscriptUnion` The ID of the file to attach as the meeting transcript when creating the meeting. Only one transcript can be attached to a meeting. - `string` - `type MeetingNewParamsRelationshipsTranscriptArray []string` ### Returns - `type MeetingCreateResponse struct{…}` - `ID string` Unique identifier for the entity. - `AccessLevel MeetingCreateResponseAccessLevel` The caller's resolved access level for this meeting. - `const MeetingCreateResponseAccessLevelFull MeetingCreateResponseAccessLevel = "FULL"` - `const MeetingCreateResponseAccessLevelMetadata MeetingCreateResponseAccessLevel = "METADATA"` - `CreatedAt string` ISO 8601 timestamp of when the entity was created. - `Fields map[string, MeetingCreateResponseField]` Map of field names to their typed values. System fields are prefixed with `$` (e.g. `$name`, `$email`); custom attributes use their bare slug. - `Value MeetingCreateResponseFieldValueUnion` The field value, or null if unset. - `string` - `float64` - `bool` - `type MeetingCreateResponseFieldValueArray []string` - `type MeetingCreateResponseFieldValueAddress struct{…}` - `City string` City name. - `Country string` 2-letter ISO 3166-1 alpha-2 country code. - `Latitude float64` Latitude coordinate. - `Longitude float64` Longitude coordinate. - `PostalCode string` Postal or ZIP code. - `State string` State or province. - `Street string` Street address line 1. - `Street2 string` Street address line 2. - `type MeetingCreateResponseFieldValueFullName struct{…}` - `FirstName string` The contact's first name. - `LastName string` The contact's last name. - `ValueType string` The data type of the field. - `const MeetingCreateResponseFieldValueTypeAddress MeetingCreateResponseFieldValueType = "ADDRESS"` - `const MeetingCreateResponseFieldValueTypeCheckbox MeetingCreateResponseFieldValueType = "CHECKBOX"` - `const MeetingCreateResponseFieldValueTypeCurrency MeetingCreateResponseFieldValueType = "CURRENCY"` - `const MeetingCreateResponseFieldValueTypeDatetime MeetingCreateResponseFieldValueType = "DATETIME"` - `const MeetingCreateResponseFieldValueTypeEmail MeetingCreateResponseFieldValueType = "EMAIL"` - `const MeetingCreateResponseFieldValueTypeFullName MeetingCreateResponseFieldValueType = "FULL_NAME"` - `const MeetingCreateResponseFieldValueTypeMarkdown MeetingCreateResponseFieldValueType = "MARKDOWN"` - `const MeetingCreateResponseFieldValueTypeMultiSelect MeetingCreateResponseFieldValueType = "MULTI_SELECT"` - `const MeetingCreateResponseFieldValueTypeNumber MeetingCreateResponseFieldValueType = "NUMBER"` - `const MeetingCreateResponseFieldValueTypeSingleSelect MeetingCreateResponseFieldValueType = "SINGLE_SELECT"` - `const MeetingCreateResponseFieldValueTypeSocialHandle MeetingCreateResponseFieldValueType = "SOCIAL_HANDLE"` - `const MeetingCreateResponseFieldValueTypeTelephone MeetingCreateResponseFieldValueType = "TELEPHONE"` - `const MeetingCreateResponseFieldValueTypeText MeetingCreateResponseFieldValueType = "TEXT"` - `const MeetingCreateResponseFieldValueTypeURL MeetingCreateResponseFieldValueType = "URL"` - `HTTPLink string` URL to view the entity in the Lightfield web app, or null. - `ObjectType MeetingCreateResponseObjectType` Always `meeting`. - `const MeetingCreateResponseObjectTypeMeeting MeetingCreateResponseObjectType = "meeting"` - `Relationships map[string, MeetingCreateResponseRelationship]` Map of relationship names to their associated entities. System relationships are prefixed with `$` (e.g. `$owner`, `$contact`). - `Cardinality string` Whether the relationship is `has_one` or `has_many`. - `ObjectType string` The type of the related object (e.g. `account`, `contact`). - `Values []string` IDs of the related entities. - `UpdatedAt string` ISO 8601 timestamp of when the entity was last updated, or null. - `ExternalID string` External identifier for the entity, or null if unset. ### 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"), ) meetingCreateResponse, err := client.Meeting.New(context.TODO(), githubcomlightfldlightfieldgo.MeetingNewParams{ Fields: githubcomlightfldlightfieldgo.MeetingNewParamsFields{ EndDate: "$endDate", StartDate: "$startDate", Title: "$title", }, }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", meetingCreateResponse.ID) } ``` #### Response ```json { "id": "id", "accessLevel": "FULL", "createdAt": "createdAt", "fields": { "foo": { "value": "string", "valueType": "ADDRESS" } }, "httpLink": "httpLink", "objectType": "meeting", "relationships": { "foo": { "cardinality": "cardinality", "objectType": "objectType", "values": [ "string" ] } }, "updatedAt": "updatedAt", "externalId": "externalId" } ```