We will be winding down Google Business Messages on July 31, 2024. Read more
here.
Method: conversations.events.create
Stay organized with collections
Save and categorize content based on your preferences.
Creates an event in a conversation.
HTTP request
POST https://businessmessages.googleapis.com/v1/{parent=conversations/*}/events
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The conversation that contains the message. Resolves to "conversations/{conversationId}".
|
Query parameters
Parameters |
eventId |
string
The unique identifier of the event, assigned by the agent. If an event has the same eventId as a previous event in the conversation, Business Messages returns an ALREADY_EXISTS error.
|
Request body
The request body contains an instance of Event
.
Response body
If successful, the response body contains a newly created instance of Event
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/businessmessages
For more information, see the OAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-14 UTC."],[[["\u003cp\u003eSends an event to an existing conversation using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying the conversation ID and a unique event ID.\u003c/p\u003e\n"],["\u003cp\u003eUses OAuth 2.0 for authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/businessmessages\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eIf successful, the response includes the newly created event details.\u003c/p\u003e\n"]]],[],null,["# Method: conversations.events.create\n\nCreates an event in a conversation.\n\n### HTTP request\n\n`POST https://businessmessages.googleapis.com/v1/{parent=conversations/*}/events`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|--------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The conversation that contains the message. Resolves to \"conversations/{conversationId}\". |\n\n### Query parameters\n\n| Parameters ||\n|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `eventId` | `string` The unique identifier of the event, assigned by the agent. If an event has the same `eventId` as a previous event in the conversation, Business Messages returns an `ALREADY_EXISTS` error. |\n\n### Request body\n\nThe request body contains an instance of [Event](/business-communications/business-messages/reference/rest/v1/conversations.events#Event).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Event](/business-communications/business-messages/reference/rest/v1/conversations.events#Event).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/businessmessages`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]