> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.aventure.vc/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.aventure.vc/_mcp/server.

# Attach a company's SEC identifiers to an entity

POST https://api.aventure.vc/v1/sec/entities/{entityId}/identifiers

Resolves a public company by ticker (preferred) or name and attaches its available SEC external identifiers (CIK, ticker, and EIN when SEC supplies one) to the target entity as res_unique_id rows — validated against the unique-id contract and stamped source `sec-edgar`. Idempotent: identifiers already mapped to the entity are reported, not re-written.

Reference: https://docs.aventure.vc/api-reference/a-venture-api/sec/map-identifiers

## Authentication

- `Authorization` header (bearer token, required) — User bearer token: Supabase or Clerk session JWT, Clerk OAuth access token, or Clerk personal API key
- `X-API-Key` header (required) — Admin API key for system-to-system write operations

## Request

### Path parameters

- `entityId` (string, required) — Canonical entity UUID to attach identifiers to

### Query parameters

- `ticker` (string, optional) — Trading ticker symbol (preferred resolver)
- `name` (string, optional) — Company name query (used when no ticker is given)
- `sourceType` (enum, required) — Write provenance source type.
  - Allowed values: `requestChangeForm`, `newsArticle`, `blogArticle`, `firstPartyWebsite`, `relatedPartyWebsite`, `thirdPartyWebsite`, `llm`, `aventureStaff`
- `sourceDetail` (string, required) — Source detail or reviewer reference for the write.
- `sourceProvider` (string, optional) — Provider name for provider-native IDs or slugs.
- `sourceProviderId` (string, optional) — Provider-native source ID.
- `sourceProviderSlug` (string, optional) — Provider-native source slug.
- `actorType` (enum, optional) — Actor type; inferred as agent when agentChassis and agentModel are supplied, or as employee from an authenticated user JWT session.
  - Allowed values: `agent`, `employee`
- `agentChassis` (string, optional) — Agent chassis token for agent-authored writes.
- `agentModel` (string, optional) — Agent model id for agent-authored writes.

## Response

### 201

Created

- `alreadyPresent` (list of object, required) — Unique-id rows already mapped to the entity and therefore skipped.
  - `createdAt` (datetime, required) — Row creation timestamp.
  - `id` (integer, required) — Unique-id row id.
  - `idType` (enum, required) — Identifier type.
    - Allowed values: `ein`, `secCik`, `ticker`, `lei`, `duns`, `isin`, `cusip`, `crd`, `orcid`
  - `identifier` (string, required) — Identifier value as issued by the registry (normalized per type).
  - `owner` (object, required) — Owning entity or person id; exactly one nested id is present.
    - `entityId` (string, optional, nullable) — Canonical entity UUID
    - `personId` (string, optional, nullable) — Canonical person UUID
  - `updatedAt` (datetime, required) — Row update timestamp.
  - `source` (string, optional, nullable) — Attribution source label for the mapping, when recorded.
- `attached` (list of object, required) — Unique-id rows written to the entity by this call.
  - `createdAt` (datetime, required) — Row creation timestamp.
  - `id` (integer, required) — Unique-id row id.
  - `idType` (enum, required) — Identifier type.
    - Allowed values: `ein`, `secCik`, `ticker`, `lei`, `duns`, `isin`, `cusip`, `crd`, `orcid`
  - `identifier` (string, required) — Identifier value as issued by the registry (normalized per type).
  - `owner` (object, required) — Owning entity or person id; exactly one nested id is present.
    - `entityId` (string, optional, nullable) — Canonical entity UUID
    - `personId` (string, optional, nullable) — Canonical person UUID
  - `updatedAt` (datetime, required) — Row update timestamp.
  - `source` (string, optional, nullable) — Attribution source label for the mapping, when recorded.
- `cik` (string, required) — SEC Central Index Key of the resolved company.

## Examples

**Response**

```json
{
  "alreadyPresent": [
    {
      "createdAt": "2024-01-15T09:30:00Z",
      "id": 1,
      "idType": "ein",
      "identifier": "string",
      "owner": {
        "entityId": "string",
        "personId": "string"
      },
      "updatedAt": "2024-01-15T09:30:00Z",
      "source": "string"
    }
  ],
  "attached": [
    {
      "createdAt": "2024-01-15T09:30:00Z",
      "id": 1,
      "idType": "ein",
      "identifier": "string",
      "owner": {
        "entityId": "string",
        "personId": "string"
      },
      "updatedAt": "2024-01-15T09:30:00Z",
      "source": "string"
    }
  ],
  "cik": "0000320193"
}
```

**SDK Code**

```python
import requests

url = "https://api.aventure.vc/v1/sec/entities/entityId/identifiers"

querystring = {"actorType":"agent","agentChassis":"codex-cli","name":"NVIDIA","sourceDetail":"aventure.vc","sourceProvider":"TechCrunch","sourceProviderId":"tc-2026-05-20-example-round","sourceProviderSlug":"example-round","sourceType":"requestChangeForm","ticker":"AAPL"}

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.aventure.vc/v1/sec/entities/entityId/identifiers?actorType=agent&agentChassis=codex-cli&name=NVIDIA&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm&ticker=AAPL';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.aventure.vc/v1/sec/entities/entityId/identifiers?actorType=agent&agentChassis=codex-cli&name=NVIDIA&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm&ticker=AAPL"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.aventure.vc/v1/sec/entities/entityId/identifiers?actorType=agent&agentChassis=codex-cli&name=NVIDIA&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm&ticker=AAPL")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.aventure.vc/v1/sec/entities/entityId/identifiers?actorType=agent&agentChassis=codex-cli&name=NVIDIA&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm&ticker=AAPL")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.aventure.vc/v1/sec/entities/entityId/identifiers?actorType=agent&agentChassis=codex-cli&name=NVIDIA&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm&ticker=AAPL', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.aventure.vc/v1/sec/entities/entityId/identifiers?actorType=agent&agentChassis=codex-cli&name=NVIDIA&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm&ticker=AAPL");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.aventure.vc/v1/sec/entities/entityId/identifiers?actorType=agent&agentChassis=codex-cli&name=NVIDIA&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm&ticker=AAPL")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```