Twenty API
APIsStoryPricingReleases
Docs
  • User Guide
  • Developers
APIsStoryPricingReleases
Docs
  • User Guide
  • Developers
27.8k
  1. opportunities
  • 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
    • Create One messageThread
    • Create Many messageThreads
    • Find One messageThread
    • Delete One messageThread
    • Update One messageThread
    • Find messageThread Duplicates
  • 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
      GET
    • Create One opportunity
      POST
    • Create Many opportunities
      POST
    • Find One opportunity
      GET
    • Delete One opportunity
      DELETE
    • Update One opportunity
      PATCH
    • Find opportunity Duplicates
      POST
  • 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. opportunities

Create One opportunity

Twenty SaaS
https://api.twenty.com/rest
Twenty SaaS
https://api.twenty.com/rest
POST
/opportunities

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/opportunities' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "string",
    "amount": {
        "amountMicros": 0,
        "currencyCode": "string"
    },
    "closeDate": "2019-08-24T14:15:22Z",
    "stage": "NEW",
    "position": 0,
    "createdBy": {
        "source": "EMAIL"
    },
    "pointOfContactId": "017e4655-7a84-4651-9e44-1b3e928798cc",
    "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda"
}'
Response Response Example
201 - Example 1
{
    "data": {
        "createOpportunity": {
            "name": "string",
            "amount": {
                "amountMicros": 0,
                "currencyCode": "string"
            },
            "closeDate": "2019-08-24T14:15:22Z",
            "stage": "NEW",
            "position": 0,
            "createdBy": {
                "source": "EMAIL",
                "workspaceMemberId": "19b2e9e0-2ca5-440b-89b8-7d3df62cd046",
                "name": "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",
            "pointOfContactId": "017e4655-7a84-4651-9e44-1b3e928798cc",
            "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",
            "pointOfContact": null,
            "company": null,
            "favorites": [
                {
                    "position": 0,
                    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                    "createdAt": "2019-08-24T14:15:22Z",
                    "updatedAt": "2019-08-24T14:15:22Z",
                    "deletedAt": "2019-08-24T14:15:22Z",
                    "forWorkspaceMemberId": "f7eace59-7486-4c52-9b13-e62a4a080bed",
                    "personId": "f3e5ff26-28ff-4cd6-9b1b-e303a185a13a",
                    "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",
                    "favoriteFolderId": "1cffe046-196f-49c9-9965-7d97562b617c",
                    "opportunityId": "3d9795f2-7722-4e1d-b41e-0c5d0c24a902",
                    "workflowId": "43c4fa9b-0cbc-4b57-a121-9d7d46a3eaa4",
                    "workflowVersionId": "9697ac6f-bc45-42de-9ae8-625f0b5a8836",
                    "workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
                    "taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",
                    "noteId": "11bee8fe-2793-4911-9b27-a6f8473a2ccf",
                    "viewId": "5aa272a5-73e4-4f9c-8123-4bac998fdb73",
                    "forWorkspaceMember": null,
                    "person": null,
                    "company": null,
                    "favoriteFolder": null,
                    "opportunity": null,
                    "workflow": null,
                    "workflowVersion": null,
                    "workflowRun": null,
                    "task": null,
                    "note": null,
                    "view": null
                }
            ],
            "taskTargets": [
                {
                    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                    "createdAt": "2019-08-24T14:15:22Z",
                    "updatedAt": "2019-08-24T14:15:22Z",
                    "deletedAt": "2019-08-24T14:15:22Z",
                    "taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",
                    "personId": "f3e5ff26-28ff-4cd6-9b1b-e303a185a13a",
                    "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",
                    "opportunityId": "3d9795f2-7722-4e1d-b41e-0c5d0c24a902",
                    "task": null,
                    "person": null,
                    "company": null,
                    "opportunity": null
                }
            ],
            "noteTargets": [
                {
                    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                    "createdAt": "2019-08-24T14:15:22Z",
                    "updatedAt": "2019-08-24T14:15:22Z",
                    "deletedAt": "2019-08-24T14:15:22Z",
                    "noteId": "11bee8fe-2793-4911-9b27-a6f8473a2ccf",
                    "personId": "f3e5ff26-28ff-4cd6-9b1b-e303a185a13a",
                    "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",
                    "opportunityId": "3d9795f2-7722-4e1d-b41e-0c5d0c24a902",
                    "note": null,
                    "person": null,
                    "company": null,
                    "opportunity": null
                }
            ],
            "attachments": [
                {
                    "name": "string",
                    "fullPath": "string",
                    "type": "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",
                    "authorId": "ee6f7132-bd0a-4fcd-83b3-a8022377067b",
                    "taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",
                    "noteId": "11bee8fe-2793-4911-9b27-a6f8473a2ccf",
                    "personId": "f3e5ff26-28ff-4cd6-9b1b-e303a185a13a",
                    "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",
                    "opportunityId": "3d9795f2-7722-4e1d-b41e-0c5d0c24a902",
                    "author": null,
                    "task": null,
                    "note": null,
                    "person": null,
                    "company": null,
                    "opportunity": null
                }
            ],
            "timelineActivities": [
                {
                    "happensAt": "2019-08-24T14:15:22Z",
                    "name": "string",
                    "properties": {},
                    "linkedRecordCachedName": "string",
                    "linkedRecordId": "6bf16493-399a-4999-b31d-012665c1fe92",
                    "linkedObjectMetadataId": "06311d91-b2e4-4f90-8dd9-ed6ef6c9df1e",
                    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                    "createdAt": "2019-08-24T14:15:22Z",
                    "updatedAt": "2019-08-24T14:15:22Z",
                    "deletedAt": "2019-08-24T14:15:22Z",
                    "workspaceMemberId": "19b2e9e0-2ca5-440b-89b8-7d3df62cd046",
                    "personId": "f3e5ff26-28ff-4cd6-9b1b-e303a185a13a",
                    "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",
                    "opportunityId": "3d9795f2-7722-4e1d-b41e-0c5d0c24a902",
                    "noteId": "11bee8fe-2793-4911-9b27-a6f8473a2ccf",
                    "taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",
                    "workflowId": "43c4fa9b-0cbc-4b57-a121-9d7d46a3eaa4",
                    "workflowVersionId": "9697ac6f-bc45-42de-9ae8-625f0b5a8836",
                    "workflowRunId": "5ca99e95-15bc-4b23-a2d2-f5f4060373ab",
                    "workspaceMember": null,
                    "person": null,
                    "company": null,
                    "opportunity": null,
                    "note": null,
                    "task": null,
                    "workflow": null,
                    "workflowVersion": null,
                    "workflowRun": null
                }
            ]
        }
    }
}
Modified at 2025-04-14 03:24:16
Previous
Find Many opportunities
Next
Create Many opportunities
Built with