Twenty API
APIsStoryPricingReleases
Docs
  • User Guide
  • Developers
APIsStoryPricingReleases
Docs
  • User Guide
  • Developers
27.8k
  1. messageThreads
  • General
    • Get Open Api Schema
      GET
  • apiKeys
    • Find Many apiKeys
      GET
    • Create One apiKey
      POST
    • Create Many apiKeys
      POST
    • Find One apiKey
      GET
    • Delete One apiKey
      DELETE
    • Update One apiKey
      PATCH
    • Find apiKey Duplicates
      POST
  • auditLogs
    • Find Many auditLogs
      GET
    • Create One auditLog
      POST
    • Create Many auditLogs
      POST
    • Find One auditLog
      GET
    • Delete One auditLog
      DELETE
    • Update One auditLog
      PATCH
    • Find auditLog Duplicates
      POST
  • attachments
    • Find Many attachments
      GET
    • Create One attachment
      POST
    • Create Many attachments
      POST
    • Find One attachment
      GET
    • Delete One attachment
      DELETE
    • Update One attachment
      PATCH
    • Find attachment Duplicates
      POST
  • blocklists
    • Find Many blocklists
    • Create One blocklist
    • Create Many blocklists
    • Find One blocklist
    • Delete One blocklist
    • Update One blocklist
    • Find blocklist Duplicates
  • calendarEvents
    • Find Many calendarEvents
    • Create One calendarEvent
    • Create Many calendarEvents
    • Find One calendarEvent
    • Delete One calendarEvent
    • Update One calendarEvent
    • Find calendarEvent Duplicates
  • calendarChannels
    • Find Many calendarChannels
    • Create One calendarChannel
    • Create Many calendarChannels
    • Find One calendarChannel
    • Delete One calendarChannel
    • Update One calendarChannel
    • Find calendarChannel Duplicates
  • calendarChannelEventAssociations
    • Find Many calendarChannelEventAssociations
    • Create One calendarChannelEventAssociation
    • Create Many calendarChannelEventAssociations
    • Find One calendarChannelEventAssociation
    • Delete One calendarChannelEventAssociation
    • Update One calendarChannelEventAssociation
    • Find calendarChannelEventAssociation Duplicates
  • calendarEventParticipants
    • Find Many calendarEventParticipants
    • Create One calendarEventParticipant
    • Create Many calendarEventParticipants
    • Find One calendarEventParticipant
    • Delete One calendarEventParticipant
    • Update One calendarEventParticipant
    • Find calendarEventParticipant Duplicates
  • companies
    • Find Many companies
    • Create One company
    • Create Many companies
    • Find One company
    • Delete One company
    • Update One company
    • Find company Duplicates
  • connectedAccounts
    • Find Many connectedAccounts
    • Create One connectedAccount
    • Create Many connectedAccounts
    • Find One connectedAccount
    • Delete One connectedAccount
    • Update One connectedAccount
    • Find connectedAccount Duplicates
  • favorites
    • Find Many favorites
    • Create One favorite
    • Create Many favorites
    • Find One favorite
    • Delete One favorite
    • Update One favorite
    • Find favorite Duplicates
  • favoriteFolders
    • Find Many favoriteFolders
    • Create One favoriteFolder
    • Create Many favoriteFolders
    • Find One favoriteFolder
    • Delete One favoriteFolder
    • Update One favoriteFolder
    • Find favoriteFolder Duplicates
  • timelineActivities
    • Find Many timelineActivities
    • Create One timelineActivity
    • Create Many timelineActivities
    • Find One timelineActivity
    • Delete One timelineActivity
    • Update One timelineActivity
    • Find timelineActivity Duplicates
  • viewFields
    • Find Many viewFields
    • Create One viewField
    • Create Many viewFields
    • Find One viewField
    • Delete One viewField
    • Update One viewField
    • Find viewField Duplicates
  • viewGroups
    • Find Many viewGroups
    • Create One viewGroup
    • Create Many viewGroups
    • Find One viewGroup
    • Delete One viewGroup
    • Update One viewGroup
    • Find viewGroup Duplicates
  • viewFilters
    • Find Many viewFilters
    • Create One viewFilter
    • Create Many viewFilters
    • Find One viewFilter
    • Delete One viewFilter
    • Update One viewFilter
    • Find viewFilter Duplicates
  • viewFilterGroups
    • Find Many viewFilterGroups
    • Create One viewFilterGroup
    • Create Many viewFilterGroups
    • Find One viewFilterGroup
    • Delete One viewFilterGroup
    • Update One viewFilterGroup
    • Find viewFilterGroup Duplicates
  • viewSorts
    • Find Many viewSorts
    • Create One viewSort
    • Create Many viewSorts
    • Find One viewSort
    • Delete One viewSort
    • Update One viewSort
    • Find viewSort Duplicates
  • views
    • Find Many views
    • Create One view
    • Create Many views
    • Find One view
    • Delete One view
    • Update One view
    • Find view Duplicates
  • webhooks
    • Find Many webhooks
    • Create One webhook
    • Create Many webhooks
    • Find One webhook
    • Delete One webhook
    • Update One webhook
    • Find webhook Duplicates
  • workflows
    • Find Many workflows
    • Create One workflow
    • Create Many workflows
    • Find One workflow
    • Delete One workflow
    • Update One workflow
    • Find workflow Duplicates
  • workflowEventListeners
    • Find Many workflowEventListeners
    • Create One workflowEventListener
    • Create Many workflowEventListeners
    • Find One workflowEventListener
    • Delete One workflowEventListener
    • Update One workflowEventListener
    • Find workflowEventListener Duplicates
  • workflowVersions
    • Find Many workflowVersions
    • Create One workflowVersion
    • Create Many workflowVersions
    • Find One workflowVersion
    • Delete One workflowVersion
    • Update One workflowVersion
    • Find workflowVersion Duplicates
  • workflowRuns
    • Find Many workflowRuns
    • Create One workflowRun
    • Create Many workflowRuns
    • Find One workflowRun
    • Delete One workflowRun
    • Update One workflowRun
    • Find workflowRun Duplicates
  • workspaceMembers
    • Find Many workspaceMembers
    • Create One workspaceMember
    • Create Many workspaceMembers
    • Find One workspaceMember
    • Delete One workspaceMember
    • Update One workspaceMember
    • Find workspaceMember Duplicates
  • messageThreads
    • Find Many messageThreads
      GET
    • Create One messageThread
      POST
    • Create Many messageThreads
      POST
    • Find One messageThread
      GET
    • Delete One messageThread
      DELETE
    • Update One messageThread
      PATCH
    • Find messageThread Duplicates
      POST
  • messages
    • Find Many messages
    • Create One message
    • Create Many messages
    • Find One message
    • Delete One message
    • Update One message
    • Find message Duplicates
  • messageChannels
    • Find Many messageChannels
    • Create One messageChannel
    • Create Many messageChannels
    • Find One messageChannel
    • Delete One messageChannel
    • Update One messageChannel
    • Find messageChannel Duplicates
  • messageParticipants
    • Find Many messageParticipants
    • Create One messageParticipant
    • Create Many messageParticipants
    • Find One messageParticipant
    • Delete One messageParticipant
    • Update One messageParticipant
    • Find messageParticipant Duplicates
  • messageFolders
    • Find Many messageFolders
    • Create One messageFolder
    • Create Many messageFolders
    • Find One messageFolder
    • Delete One messageFolder
    • Update One messageFolder
    • Find messageFolder Duplicates
  • messageChannelMessageAssociations
    • Find Many messageChannelMessageAssociations
    • Create One messageChannelMessageAssociation
    • Create Many messageChannelMessageAssociations
    • Find One messageChannelMessageAssociation
    • Delete One messageChannelMessageAssociation
    • Update One messageChannelMessageAssociation
    • Find messageChannelMessageAssociation Duplicates
  • notes
    • Find Many notes
    • Create One note
    • Create Many notes
    • Find One note
    • Delete One note
    • Update One note
    • Find note Duplicates
  • noteTargets
    • Find Many noteTargets
    • Create One noteTarget
    • Create Many noteTargets
    • Find One noteTarget
    • Delete One noteTarget
    • Update One noteTarget
    • Find noteTarget Duplicates
  • opportunities
    • Find Many opportunities
    • Create One opportunity
    • Create Many opportunities
    • Find One opportunity
    • Delete One opportunity
    • Update One opportunity
    • Find opportunity Duplicates
  • people
    • Find Many people
    • Create One person
    • Create Many people
    • Find One person
    • Delete One person
    • Update One person
    • Find person Duplicates
  • tasks
    • Find Many tasks
    • Create One task
    • Create Many tasks
    • Find One task
    • Delete One task
    • Update One task
    • Find task Duplicates
  • taskTargets
    • Find Many taskTargets
    • Create One taskTarget
    • Create Many taskTargets
    • Find One taskTarget
    • Delete One taskTarget
    • Update One taskTarget
    • Find taskTarget Duplicates
  • Metadata
  • Core
  1. messageThreads

Create Many messageThreads

Twenty SaaS
https://api.twenty.com/rest
Twenty SaaS
https://api.twenty.com/rest
POST
/batch/messageThreads

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Query Params

Body Params application/json

Examples

Responses

🟢201Created
application/json
Successful operation
Body

🟠400Bad Request
🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.twenty.com/rest/batch/messageThreads' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '[
    {}
]'
Response Response Example
201 - Example 1
{
    "data": {
        "createMessageThreads": [
            {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "createdAt": "2019-08-24T14:15:22Z",
                "updatedAt": "2019-08-24T14:15:22Z",
                "deletedAt": "2019-08-24T14:15:22Z",
                "messages": [
                    {
                        "headerMessageId": "string",
                        "subject": "string",
                        "text": "string",
                        "receivedAt": "2019-08-24T14:15:22Z",
                        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                        "createdAt": "2019-08-24T14:15:22Z",
                        "updatedAt": "2019-08-24T14:15:22Z",
                        "deletedAt": "2019-08-24T14:15:22Z",
                        "messageThreadId": "f2cc176f-f0d8-45d5-aa2b-3b361c163967",
                        "messageThread": null,
                        "messageParticipants": [
                            {
                                "role": "from",
                                "handle": "string",
                                "displayName": "string",
                                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                                "createdAt": "2019-08-24T14:15:22Z",
                                "updatedAt": "2019-08-24T14:15:22Z",
                                "deletedAt": "2019-08-24T14:15:22Z",
                                "messageId": "8540d774-4863-4d2b-b788-4ecb19412e85",
                                "personId": "f3e5ff26-28ff-4cd6-9b1b-e303a185a13a",
                                "workspaceMemberId": "19b2e9e0-2ca5-440b-89b8-7d3df62cd046",
                                "message": null,
                                "person": null,
                                "workspaceMember": null
                            }
                        ],
                        "messageChannelMessageAssociations": [
                            {
                                "messageExternalId": "string",
                                "messageThreadExternalId": "string",
                                "direction": "INCOMING",
                                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                                "createdAt": "2019-08-24T14:15:22Z",
                                "updatedAt": "2019-08-24T14:15:22Z",
                                "deletedAt": "2019-08-24T14:15:22Z",
                                "messageChannelId": "75ffdad4-1f3d-4135-8650-e108fea3e73d",
                                "messageId": "8540d774-4863-4d2b-b788-4ecb19412e85",
                                "messageChannel": null,
                                "message": null
                            }
                        ]
                    }
                ]
            }
        ]
    }
}
Modified at 2025-04-14 03:24:16
Previous
Create One messageThread
Next
Find One messageThread
Built with