> 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.

# Create entity address

POST https://api.aventure.vc/v1/entities/{entityId}/addresses
Content-Type: application/json

Create or reuse an entity address from structured address fields and attach it to the entity. fullAddress is server-synthesized and cannot be written; city-level rows require researchExhausted=true after address research is exhausted. The first current address defaults to current domicile and dominant associations; later omitted-role addresses stay unclassified.

Reference: https://docs.aventure.vc/api-reference/a-venture-api/entity-addresses-canonical/create-address-1

## 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

### Query parameters

- `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.

### Body (application/json)

- `addressLine1` (string, optional, nullable) — Address line 1.
- `addressLine2` (string, optional, nullable) — Address line 2 (suite, floor, etc.)
- `cityName` (string, optional, nullable) — City name, resolved within the selected country; include state or region only when that country requires it.
- `countryCode` (string, optional, nullable) — ISO-3166 alpha-2 country code.
- `countryName` (string, optional, nullable) — Country name lookup.
- `endDate` (date, optional, nullable) — Last known day this address association applied.
- `latitude` (double, optional, nullable) — Latitude in decimal degrees
- `longitude` (double, optional, nullable) — Longitude in decimal degrees
- `postalCode` (string, optional, nullable) — Postal or ZIP code.
- `researchExhausted` (boolean, optional, nullable) — Allow a city-level or coarser row only when source research proves no address-line, postal, or coordinate-specific address exists.
- `role` (enum, optional, nullable) — Address association role. Domicile is a legal or registered seat, dominant is the predominant display location, origin is a founding or historical location; null means unclassified.
  - Allowed values: `domicile`, `dominant`, `origin`
- `startDate` (date, optional, nullable) — First known day this address association applied.
- `stateAbbrev` (string, optional, nullable) — State or region abbreviation for countries that require one.
- `stateName` (string, optional, nullable) — State or region name, resolved within the selected country when that country requires one.
- `isCurrent` (boolean, optional, nullable, deprecated) — Deprecated legacy flag marking whether the address is currently in use.
- `isHq` (boolean, optional, nullable, deprecated) — Deprecated compatibility flag for a legal or registered seat.
- `isPrimary` (boolean, optional, nullable, deprecated) — Deprecated compatibility flag for the predominant display location.

## Response

### 200

OK

- `address` (integer, optional, nullable) — Legacy address row identifier
- `addressLine1` (string, optional, nullable)
- `addressLine2` (string, optional, nullable)
- `association` (list of object, optional) — Role-period associations for this physical address
  - `id` (integer, required) — Address association row identifier
  - `isCurrent` (boolean, required) — Whether this role is currently relevant
  - `endDate` (date, optional, nullable) — Last known day this role applied
  - `role` (enum, optional, nullable) — Address association role; null means unclassified
    - Allowed values: `domicile`, `dominant`, `origin`
  - `startDate` (date, optional, nullable) — First known day this role applied
- `city` (object, optional, nullable) — City reference
  - `name` (string, required) — City name
  - `id` (integer, optional, nullable)
- `country` (object, optional, nullable) — Country reference
  - `name` (string, required) — Country name
  - `countryCodeChar2` (string, optional, nullable) — Two-letter country code
  - `countryCodeChar3` (string, optional, nullable) — Three-letter country code
  - `id` (integer, optional, nullable)
  - `unRegion` (string, optional, nullable)
  - `unSubregion` (string, optional, nullable)
- `countryAbbrev` (string, optional, nullable)
- `createdAt` (datetime, optional, nullable)
- `fullAddress` (string, optional, nullable) — Single-line formatted address
- `id` (integer, optional, nullable) — Address record identifier
- `latitude` (double, optional, nullable)
- `longitude` (double, optional, nullable)
- `postalCode` (string, optional, nullable)
- `state` (object, optional, nullable) — State or region reference
  - `name` (string, required) — State or region name
  - `id` (integer, optional, nullable)
  - `stateAbbrev` (string, optional, nullable) — State or region abbreviation
- `stateAbbrev` (string, optional, nullable)
- `street` (string, optional, nullable)
- `updatedAt` (datetime, optional, nullable)
- `isCurrent` (boolean, optional, nullable, deprecated) — Deprecated aggregate compatibility flag; true when any association is current
- `isHq` (boolean, optional, nullable, deprecated) — Deprecated legacy flag marking the headquarters or legal/registered address
- `isPrimary` (boolean, optional, nullable, deprecated) — Deprecated legacy flag marking the primary display address

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "address": 456,
  "addressLine1": "string",
  "addressLine2": "string",
  "association": [
    {
      "id": 123,
      "isCurrent": true,
      "endDate": "2023-01-15",
      "role": "domicile",
      "startDate": "2023-01-15"
    }
  ],
  "city": {
    "name": "Boston",
    "id": 1
  },
  "country": {
    "name": "United States",
    "countryCodeChar2": "US",
    "countryCodeChar3": "USA",
    "id": 1,
    "unRegion": "string",
    "unSubregion": "string"
  },
  "countryAbbrev": "string",
  "createdAt": "2024-01-15T09:30:00Z",
  "fullAddress": "123 Main St, Boston, MA 02110, USA",
  "id": 123,
  "latitude": 1.1,
  "longitude": 1.1,
  "postalCode": "string",
  "state": {
    "name": "Massachusetts",
    "id": 1,
    "stateAbbrev": "MA"
  },
  "stateAbbrev": "string",
  "street": "string",
  "updatedAt": "2024-01-15T09:30:00Z",
  "isCurrent": true,
  "isHq": true,
  "isPrimary": true
}
```

**SDK Code**

```python
import requests

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

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

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

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

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"
	"strings"
	"net/http"
	"io"
)

func main() {

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

	payload := strings.NewReader("{}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	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/entities/entityId/addresses?actorType=agent&agentChassis=codex-cli&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

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/entities/entityId/addresses?actorType=agent&agentChassis=codex-cli&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.aventure.vc/v1/entities/entityId/addresses?actorType=agent&agentChassis=codex-cli&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.aventure.vc/v1/entities/entityId/addresses?actorType=agent&agentChassis=codex-cli&sourceDetail=aventure.vc&sourceProvider=TechCrunch&sourceProviderId=tc-2026-05-20-example-round&sourceProviderSlug=example-round&sourceType=requestChangeForm");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

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

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()
```