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

# Persons

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

## 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 of the person                                                                                                       |
| phoneNumber  | Phone number related to the person                                                                                       |
| employerName | Name of the organization the person belongs to.                                                                          |
| employer     | Organization the person belongs to. Contains the same data as available when fetching [Organizations](https://lime-go.readme.io/reference/organizations) |
| customFields | Available custom fields on the person (title, type and value)                                                            |

## Queries

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

### Get a specific person by id.

```json Query
person(id: "pase1578159") {
  id
  name
  email
  phoneNumber
  employerName
  dateLastModified
  employer {
    id
    name
    city
    email
    phoneNumber
    organizationNumber
    responsibleCoworker {
      id
      name
      email
      phoneNumber
  	}
    customFields {
      title
      type
      value
    }
    integrationId
    temperature
    customerRelation
    tags
	}
  customFields {
    title
    type
    value
  }
}
```
```json Result
{
  "data": {
    "person": {
      "id": "pase1578159",
      "name": "Anna Johansson",
      "phoneNumber": [
        "046-2704800"
      ],
      "employerName": "Lime Technologies Sweden AB",
      "dateLastModified": "2026-02-06T16:24:15.628324",
      "employer": {
        "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"
        ]
      }
    }
  }
}
```

### Search for persons

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

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

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

      <td>
        Searches against the person or email name and or its organization's name that employees them.  
        If no query has been provided then all first x persons are returned.
      </td>
    </tr>

    <tr>
      <td>
        first
      </td>

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

    <tr>
      <td>
        offset
      </td>

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

```json Query
persons(query: "anna.johansson@lundalogik.se", first: 15, offset: 0) {
  id
  name
  email
  phoneNumber
  employerName
  employer {
    id
    name
    city
    email
    phoneNumber
    organizationNumber
    responsibleCoworker {
      id
      name
      email
      phoneNumber
  	}
    customFields {
      title
      type
      value
    }
    integrationId
    temperature
    customerRelation
    tags
	}
  customFields {
    title
    type
    value
  }
}
```
```json Result
{
  "data": {
    "persons": [
      {
        "id": "pase1578159",
        "name": "Anna Johansson",
        "phoneNumber": [
          "046-2704800"
        ],
        "employerName": "Lime Technologies Sweden AB",
        "employer": {
          "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"
          ]
        }
      }
    ]
  }
}
```

## Mutations

The available mutations for updating Persons.

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

  If you intend to do multiple modifications to a person, 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>

### **Important**

In the examples below, we are using the `id` field to refer to a person in Lime Go. This is the person id that you can find in the browser url, when you open a person card. It can be either formatted like `pase123456` or `123456`, depending on the source of the person.

### Update multiple fields

In the example below we are setting a `emailConsent`, changing the `email` and adding two new tags to a person with id `123`.

```json Request
mutation {
  updatePerson(input: {
    id: "123"
    emailConsent: true
    tags: { addTags: ["example", "another example"] }
    email: "example-email@lime.tech" (experimental)    
  }) {
    name
    email
    position
    tags
    currentlyEmployed
    emailConsent
    phoneNumber
    employerName
    employer {
      city
      customerRelation
      id
      name
      organizationNumber
      phoneNumber
      tags
      temperature
    }
  } 
}
```
```json Response
{
  "data": {
    "updatePerson": {
      "name": "Anna Johansson",
      "email": "anna.johansson@lundalogik.se",
      "position": "Kontorschef",
      "tags": [
        "example",
        "another example"
      ],
      "currentlyEmployed": true,
      "emailConsent": true,
      "phoneNumber": [
        "046-2704800",
        "046-123"
      ],
      "employerName": "Lime Technologies Sweden AB",
      "employer": {
        "city": "LUND",
        "customerRelation": "NO_RELATION",
        "id": "pase7200",
        "name": "Lime Technologies Sweden AB",
        "organizationNumber": "556397-0465",
        "phoneNumber": [
          "046-2704800"
        ],
        "tags": [],
        "temperature": 0
      }
    }
  }
}
```

### Set email consent on person

```json Request
mutation {
  updatePerson(input: {
    id: "123"
    emailConsent: true
  }) {
    name
    emailConsent
  } 
}
```
```json Response
{
  "data": {
    "updatePerson": {
      "name": "Anna Johansson",
      "emailConsent": true
    }
  }
}
```

### Add tags on person

```json Request
mutation {
  updatePerson(input: {
    id: "123"
    tags: { addTags: ["example", "another example"] }
  }) {
    name
    tags
  } 
}
```
```json Response
{
  "data": {
    "updatePerson": {
      "name": "Anna Johansson",
      "tags": [
        "example",
        "another example"
      ]
    }
  }
}
```

### Change an email of a person

```json Request
mutation {
  updatePerson(input: {
    id: "123"
    email: "example-email@lime.tech"
  }) {
    name
    email
  } 
}
```
```json Response
{
  "data": {
    "updatePerson": {
      "name": "Anna Johansson",
      "tags": [
        "example",
        "another example"
      ]
    }
  }
}
```

## Create mail

### Add an email as a note

This will create a note with the email's details under the given organization, person and coworker where the coworker details are the details of the coworker which the API key is used for.

```json Request
mutation {
	createMail(input: {
    email: {
      subject: "FW:FW:FW: Gotta see this!"
      body: "This is an email."
    }
    organization: {
      name: "Lime Technologies AB"
      city: "Lund"
    }
    person: {
      firstName: "Erik"
      lastName: "Syrén"
    }
  }) {
	 mailId
	}
}
```