---
updatedAt: 2026-02-24T08:25:25.000Z
agentTools:
  projectIndex: https://lime-go.readme.io/llms.txt
---

# Organizations

Use Lime Go's GraphQL API to search for and update data on Organizations

## Available data

This is the **only** data that can be requested from our API. If you have any additional wishes, please contact us.

| Key                 | Description                                                                           |
| :------------------ | :------------------------------------------------------------------------------------ |
| id                  | Id                                                                                    |
| name                | Name                                                                                  |
| city                | City                                                                                  |
| email               | Email                                                                                 |
| dateLastModified    | DateTime when the object was last modified in local database                          |
| phoneNumber         | Phone number related to the organization                                              |
| organizationNumber  | Organization number                                                                   |
| responsibleCoworker | Responsible Coworker (id, name, email and phone number)                               |
| customFields        | Custom fields (title, type and value)                                                 |
| integrationId       | Integration id                                                                        |
| temperature         | Temperature                                                                           |
| customerRelation    | Relation to organization                                                              |
| tags                | Tags                                                                                  |
| employees           | Search for persons connected to organization (id, name, email, phone number and tags) |
| deals               | Search for deals connected to organization (id, name, status and tags)                |

## Queries

The ways to fetch one or more organizations and it's related data.

### Get a specific organization by id.

| Input  | Description                                                                                                                                                                                                                                                           |
| :----- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id     | The id of the organization which could be either of the "\{sourceName}\{number}" or "\{number}" format.                                                                                                                                                               |
| query  | When applied to the employees or deals query, it works the same way as with the persons query and the deals query as described further below in the query list, with the exception that the deals and employees are of course associated with the given organization. |
| first  | The amount of items to fetch. Defaults to 10. Max 20 at a time.                                                                                                                                                                                                       |
| offset | The amount of items to skip. Defaults to 0.                                                                                                                                                                                                                           |

```json Query
organization(id: "pase106797") {
  id
  name
  city
  email
  phoneNumber
  organizationNumber
  dateLastModified
  responsibleCoworker {
		id
  	name
  	email
  	phoneNumber
	}
	customFields {
  	title
    type
    value
  }
	integrationId
  temperature
  customerRelation
  tags
  employees(query: "anna.johansson@lundalogik.se", first: 5, offset: 0) {
	  id
    name
    email
  	phoneNumber
  	tags
	}
  deals(query: "Big Deal", first: 5, offset: 0) {
	  id
  	name
  	status
  	tags
  }
}
```
```json Result
{
  "data": {
    "organization": {
      "id": "pase106797",
      "name": "Lime Technologies Sweden AB",
      "city": "LUND",
      "email": "info@lundalogik.se",
      "phoneNumber": [
        "046-2704800"
      ],
      "organizationNumber" : "23235-23123",
      "dateLastModified": "2026-02-06T16:24:15.628324",
      "responsibleCoworker": {
				"id": 2343,
  			"name" : "Max Nyman",
  			"email": "max.nyman@lime-go.com",
  			"phoneNumber": "046-2704800"
			},
			customFields: [
      	{
      		"title": "Social Media Link",
      		"type": "Link",
       		"value": "https://www.linkedin.com/company/limetechnologies"
    		}
      ],
    	"integrationId": 2344,
      "temperature": 66.98342680275138,
      "customerRelation": "IS_A_CUSTOMER",
      "tags": [
        "sample", 
        "batch"
      ],
      employees:  [
        {
          "id": "pase1578159",
          "name": "Anna Johansson",
          "email": "anna.johansson@lundalogik.se",
          "phoneNumber": [
            "+46462704800"
          ],
          "tags": [
            "sample"
          ]
        }
      ],
      deals: [
        {
          "id": 850851,
          "name": "Big Deal",
          "status": "ORDER",
          "tags": [
            "sample"
          ]
        }
      ]
    }
  }
}
```

### Get a specific organization by externalKey

| Input           | Description                                                                                                                                                                                                                                                           |
| :-------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id              | The value that is stored in the `externalKey` field                                                                                                                                                                                                                   |
| externalKeyName | The name of the custom field or `__integrationid` / `__bisnodeid`                                                                                                                                                                                                     |
| query           | When applied to the employees or deals query, it works the same way as with the persons query and the deals query as described further below in the query list, with the exception that the deals and employees are of course associated with the given organization. |
| first           | The amount of items to fetch. Defaults to 10. Max 20 at a time.                                                                                                                                                                                                       |
| offset          | The amount of items to skip. Defaults to 0.                                                                                                                                                                                                                           |

External key is a user defined *Custom field* of type `ExternalKey` that can be created in Lime Go for `Organization` `Deal` and `Person`. You'll find it under Settings after you logged into Lime Go.

If you set `externalKeyName` to `__integrationid` or `__bisnodeid`. This will change the scope from the user defined *Custom field* to look for the supplied `value` in corresponding field.

```json Query
organization(id: "123", externalKeyName: "Name of external key") {
  id
  name
  city
  email
  phoneNumber
  organizationNumber
  responsibleCoworker {
		id
  	name
  	email
  	phoneNumber
	}
	customFields {
  	title
    type
    value
  }
	integrationId
  temperature
  customerRelation
  tags
  employees(query: "anna.johansson@lundalogik.se", first: 5, offset: 0) {
	  id
    name
    email
  	phoneNumber
  	tags
	}
  deals(query: "Big Deal", first: 5, offset: 0) {
	  id
  	name
  	status
  	tags
  }
}
```
```json Result
{
  "data": {
    "organization": {
      "id": "pase106797",
      "name": "Lime Technologies Sweden AB",
      "city": "LUND",
      "email": "info@lundalogik.se",
      "phoneNumber": [
        "046-2704800"
      ],
      "organizationNumber" : "23235-23123",
      "responsibleCoworker": {
				"id": 2343,
  			"name" : "Max Nyman",
  			"email": "max.nyman@lime-go.com",
  			"phoneNumber": "046-2704800"
			},
			customFields: [
      	{
      		"title": "Social Media Link",
      		"type": "Link",
       		"value": "https://www.linkedin.com/company/limetechnologies"
    		}
      ],
    	"integrationId": 2344,
      "temperature": 66.98342680275138,
      "customerRelation": "IS_A_CUSTOMER",
      "tags": [
        "sample", 
        "batch"
      ],
      employees:  [
        {
          "id": "pase1578159",
          "name": "Anna Johansson",
          "email": "anna.johansson@lundalogik.se",
          "phoneNumber": [
            "+46462704800"
          ],
          "tags": [
            "sample"
          ]
        }
      ],
      deals: [
        {
          "id": 850851,
          "name": "Big Deal",
          "status": "ORDER",
          "tags": [
            "sample"
          ]
        }
      ]
    }
  }
}
```

### Search for organizations

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Input
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        query
      </td>

      <td>
        When applied to the top level organizations query, the query text is applied against an organization's name and its visiting address.  
        If no query has been provided then all first x organizations are returned.  
        When applied to the employees or deals query, it works the same way as with the persons query and the deals query as described further below in the query list, with the exception that the deals and employees are of course associated with the given organization.
      </td>
    </tr>

    <tr>
      <td>
        first
      </td>

      <td>
        The amount of items to fetch. Defaults to 10. Max 20 at a time.
      </td>
    </tr>

    <tr>
      <td>
        offset
      </td>

      <td>
        The amount of items to skip. Defaults to 0.
      </td>
    </tr>
  </tbody>
</Table>

```json Query
organizations(query: "Lime technologies sweden ab", first: 15, offset: 0) {
  id
  name
  city
  email
  phoneNumber
  temperature
  customerRelation
  turnover
  numberOfEmployees
  tags
  employees(query: "anna.johansson@lundalogik.se", first: 5, offset: 0) {
	  id
    name
    email
  	phoneNumber
  	tags
	}
  deals(query: "Big Deal", first: 5, offset: 0) {
	  id
  	name
  	status
  	tags
  }
}
```
```json
{
  "data": {
    "organizations": [
      {
        "id": "pase106797",
        "name": "Lime Technologies Sweden AB",
        "city": "Lund",
        "email": "info@lundalogik.se",
        "phoneNumber": [
          "+46462704800"
        ],
        "temperature": 66.98342680275138,
        "customerRelation": "IS_A_CUSTOMER",
        "turnover": 217623000,
        "numberOfEmployees": "100 - 199",
        "tags": [
          "sample",
          "batch"
        ],
        employees:  [
          {
            "id": "pase1578159",
            "name": "Anna Johansson",
            "email": "anna.johansson@lundalogik.se",
            "phoneNumber": [
              "+46462704800"
            ],
            "tags": [
              "sample"
            ]
          }
    		],
        deals: [
          {
            "id": 850851,
            "name": "Big Deal",
            "status": "ORDER",
            "tags": [
            	"sample"
          	]
    			}
    		]
      },
      {
        "id": "pase1441896",
        "name": "Lime Technologies Sweden AB",
        "city": "Göteborg",
        "email": null,
        "phonenumber": [
          "+46317124400"
        ],
        "temperature": 0,
        "customerRelation": "NO_RELATION",
        "turnover": 217623000,
        "numberOfEmployees": "100 - 199",
        "tags": [
          "sample", 
          "batch"
        ]
      }
    ]
  }
}
```

## Mutations

The available mutations for updating Organizations.

<Callout icon="💡" theme="default">
  ### Use one mutation for everything

  If you intend to do multiple modifications to a organization, we recommend that you set them all in the same mutation (as below) since this will be fully transactional. Meaning that either all data gets saved or none.
</Callout>

### Update multiple fields

In the example below we are setting a `relation` as well as  `responsibleCoworker` and adding two new tags to a company with id `pase7136`.

```json Request
mutation {
  updateOrganization(input: {
    id: "pase7136"
    relation: IS_A_CUSTOMER
    responsibleCoworker: { identifier: "1001" }
    tags: { addTags: ["hej", "ho"] }
  }) {
    id
    name
    city
    organizationNumber
    temperature
    customerRelation
    responsibleCoworker { id, email, name }
    tags
  }
}
```

### Set relation on organization

| relation         | description                                                                                                                                              |
| :--------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `NO_RELATION`    | This is the default, we have not been in contact with this organization in any  way                                                                      |
| `WORKING_ON_IT`  | Something is happening with this organization, we might have booked a meeting with them or created a deal etc.                                           |
| `IS_A_CUSTOMER`  | We have made a deal with this organization                                                                                                               |
| `WAS_A_CUSTOMER` | We have made a deal with this organization but it was some time ago and we don't consider them a customer any more.                                      |
| `BEEN_IN_TOUCH`  | We had something going with this organization but we couldn't close the deal and we don't think they will be a customer to us in the foreseeable future. |

<br />

```json Request
mutation {
  updateOrganization(input: {
    id: "pase7136"
    relation: IS_A_CUSTOMER
  }) {
    id
    name
    customerRelation
  }
}
```

### Add tags on organization

```json Request
mutation {
  updateOrganization(input: {
    id: "pase7136"
    tags: { addTags: ["Extra tag", "From GraphQL"] }
  }) {
    id
    name
    tags
  }
}
```

### Set responsible coworker on organization

```json Request
mutation {
  updateOrganization(input: {
    id: "pase7136"
    responsibleCoworker: { identifier: "1001" }
  }) {
    id
    name
    responsibleCoworker { id, email, name }
  }
}
```

### Set external key  on organization

A **Custom Field** with name `Name of existing field` must already exist on `Organization`

```json Request
mutation {
  updateOrganization(input: {
    id: "pase7136"
    externalKey: { name: "Name of existing field", value: "456" }
  }) {
    id
    name
  }
}
```