> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encrata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Get up and running with the Encrata API in under 2 minutes.

## 1. Get your API key

Head to the [API Keys page](https://encrata.com/api-keys) and create a new key. Copy it somewhere safe you won't be able to see it again.

## 2. Make your first lookup

<CodeGroup>
  ```bash cURL theme={"dark"}
  curl -X POST https://encrata.com/api/agent/lookup \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"email": "satya@microsoft.com"}'
  ```

  ```python Python theme={"dark"}
  import requests

  resp = requests.post(
      "https://encrata.com/api/agent/lookup",
      headers={"Authorization": "Bearer YOUR_API_KEY"},
      json={"email": "satya@microsoft.com"},
  )
  print(resp.json())
  ```

  ```javascript JavaScript theme={"dark"}
  const resp = await fetch("https://encrata.com/api/agent/lookup", {
    method: "POST",
    headers: {
      Authorization: "Bearer YOUR_API_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ email: "satya@microsoft.com" }),
  });
  const data = await resp.json();
  console.log(data);
  ```

  ```go Go theme={"dark"}
  package main

  import (
  	"bytes"
  	"encoding/json"
  	"fmt"
  	"net/http"
  )

  func main() {
  	body, _ := json.Marshal(map[string]string{"email": "satya@microsoft.com"})
  	req, _ := http.NewRequest("POST", "https://encrata.com/api/agent/lookup", bytes.NewBuffer(body))
  	req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
  	req.Header.Set("Content-Type", "application/json")

  	resp, err := http.DefaultClient.Do(req)
  	if err != nil {
  		panic(err)
  	}
  	defer resp.Body.Close()

  	var result map[string]interface{}
  	json.NewDecoder(resp.Body).Decode(&result)
  	fmt.Println(result)
  }
  ```
</CodeGroup>

## 3. Parse the response

```json theme={"dark"}
{
  "name": "Satya Nadella",
  "email": "satya@microsoft.com",
  "company": "Microsoft",
  "role": "CEO",
  "industry": "Technology",
  "location": "Redmond, US",
  "socials": {
    "linkedin": "https://linkedin.com/in/satyanadella"
  },
  "news": [
    {
      "title": "Microsoft CEO on the future of AI",
      "url": "https://example.com/article",
      "date": "Jan 15, 2026",
      "source": "Bloomberg"
    }
  ]
}
```

<Note>
  Each lookup costs **1 credit**.
</Note>
