Skip to content
Maua.Culturewire

Twenty

Open-source CRM: people, companies, opportunities and tasks

Sales and CRMCatalog2 tools · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • API keySecretRequired
    • Twenty URLOptionalHTTPS URL

    Where to find them

    1. In Twenty open “Settings” → “Developers” → “API” and click “+ Create key”.
    2. Give it a name and an expiry; to limit what it can see, assign it a role in “Settings” → “Members” → “Roles”.
    3. Copy the key: it is shown only once. With Twenty Cloud leave the default URL; with a self-hosted installation, enter its URL.

Tools (2)

  • Twenty API requestTWENTY_SEND_REQUEST

    Authenticated call to the Twenty API ({url}). Any endpoint of the API is allowed. The API is generated from your workspace's schema (custom objects also get a path). Examples: GET /rest/people?limit=20, GET /rest/companies?limit=20, GET /rest/opportunities, POST /rest/people {"name": {"firstName": "Jane", "lastName": "Doe"}}, GET /rest/metadata/objects (schema), and GraphQL with TWENTY_SEND_GRAPHQL_REQUEST.

    Required scopes

    No scopes required

    Input

    Twenty API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.
  • Twenty GraphQL requestTWENTY_SEND_GRAPHQL_REQUEST

    Runs a GraphQL query or mutation against the Twenty API and returns its data and errors.

    Required scopes

    No scopes required

    Input

    Twenty GraphQL request input
    NameTypeDescription
    queryrequiredstringGraphQL query or mutation
    variablesobjectGraphQL variables