---
agentTools:
  projectIndex: https://getgrasp.readme.io/llms.txt
---

# Find a contact

*Note: if the contact with given identifier, returns 404*

# OpenAPI definition

````json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Grasp Api",
    "description": "This is a first version of the API to send custom events or order data into Grasp. All endpoints require authorization. Set the value for the ```api_key``` header with your personal key provided by Grasp.",
    "termsOfService": "https://getgrasp.com/terms/",
    "contact": {
      "email": "support@getgrasp.com"
    },
    "version": "1.1.1"
  },
  "externalDocs": {
    "description": "Grasp API confluence doc",
    "url": "https://casengo.atlassian.net/wiki/spaces/HOME/pages/1333723178/Casengo%2BAPI%2B2020%2BMVP"
  },
  "servers": [
    {
      "url": "https://app.getgrasp.com/api/v1"
    }
  ],
  "tags": [
    {
      "name": "Contact",
      "description": "Update contact"
    }
  ],
  "paths": {
    "/contact": {
      "get": {
        "tags": [
          "Contact"
        ],
        "summary": "Find a contact",
        "description": "*Note: if the contact with given identifier, returns 404*",
        "operationId": "findContact",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactFind"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Contact is found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "contact": {
                      "$ref": "#/components/schemas/Contact"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Contact is not found",
            "content": {}
          }
        },
        "security": [
          {
            "api_key": []
          }
        ],
        "x-codegen-request-body-name": "body"
      }
    }
  },
  "components": {
    "schemas": {
      "Identifier": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/IdentifierItem"
        }
      },
      "IdentifierItem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "CASENGO_CONTACT_ID",
              "EMAIL",
              "PHONE"
            ]
          },
          "value": {
            "type": "string"
          }
        },
        "example": {
          "type": "EMAIL",
          "value": "john@grasp.com"
        }
      },
      "ContactFind": {
        "type": "object",
        "properties": {
          "identifiers": {
            "$ref": "#/components/schemas/Identifier"
          }
        }
      },
      "Contact": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "example": 96486
          },
          "name": {
            "type": "string",
            "example": "John Doe"
          },
          "company": {
            "type": "string",
            "example": "Grasp"
          },
          "customerId": {
            "type": "string",
            "example": "A-10482193"
          },
          "description": {
            "type": "string",
            "example": "Contact's description"
          },
          "email": {
            "type": "string",
            "example": "Contact's e-mail"
          },
          "phone": {
            "type": "string",
            "example": "Contact's phone number"
          },
          "whatsappId": {
            "type": "integer",
            "format": "int64",
            "example": 9648611
          },
          "createdOn": {
            "type": "integer",
            "format": "int64",
            "example": 9648611
          },
          "channel": {
            "$ref": "#/components/schemas/Channel"
          },
          "otherChannels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Channel"
            }
          },
          "properties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "Channel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "example": 96486
          },
          "name": {
            "type": "string",
            "example": "John Doe"
          },
          "value": {
            "type": "string",
            "example": 3861239876
          },
          "type": {
            "type": "string",
            "enum": [
              "EMAIL",
              "CHAT",
              "WHATSAPP",
              "MESSENGER",
              "INSTAGRAM"
            ]
          }
        }
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "api_key",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 106,
      "1": 149,
      "2": 223,
      "3": 215,
      "4": 223,
      "5": 75,
      "6": 167,
      "7": 157,
      "8": 126,
      "9": 122,
      "10": 47,
      "11": 119
    }
  }
}
````