# Secretary of State registrations (US)

Get every Secretary of State registration of a US company.

Returns the domestic formation and every foreign qualification of the same business across all 50 states, DC, Puerto Rico and the US Virgin Islands, matched by legal name and sorted by state. `foreign: true` marks a qualification outside the formation state. Each item links to its own company card by `id`. Non-US companies return an empty array.

## Endpoint

```text
GET /api/v1/companies/:company_id/registrations
```

Find the `company_id` with [Search](/en/docs/reference) (`POST /api/v1/companies/search` with `"filters": {"jurisdiction": ["us-de"]}`) or resolve a state entity number with `GET /api/v1/companies/get_id/:jurisdiction/:identifier` (e.g. `us-de`, `5600000`).

## Parameters

| Parameter | Type | In | Description |
| --- | --- | --- | --- |
| `company_id` | `integer` | path | Numeric Statsnet id of a US company (from search or `get_id`). |

## Code Examples

**Get SoS registrations**

**cURL**

```bash
curl "https://statsnet.co/api/v1/companies/10000913141092/registrations" \
  -H "x-api-key: sk_live_YOUR_KEY"
```

**Python**

```python
import requests

url = 'https://statsnet.co/api/v1/companies/10000913141092/registrations'
headers = {'x-api-key': 'sk_live_YOUR_KEY'}

response = requests.get(url, headers=headers).json()
print(response)
```

**TypeScript**

```typescript
const url = 'https://statsnet.co/api/v1/companies/10000913141092/registrations';

const response = await fetch(url, {
  headers: { 'x-api-key': 'sk_live_YOUR_KEY' },
});

const data = await response.json();
console.log(data);
```

**Go**

```go
package main

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

func main() {
	req, _ := http.NewRequest("GET", "https://statsnet.co/api/v1/companies/10000913141092/registrations", nil)
	req.Header.Set("x-api-key", "sk_live_YOUR_KEY")

	resp, _ := http.DefaultClient.Do(req)
	defer resp.Body.Close()

	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
```

## Response

**Success response**

```json
[
  {
    "id": 10000913141092,
    "jurisdiction": "us-de",
    "name": "ACME HOLDINGS LLC",
    "identifier": "5600000",
    "status": "Active",
    "legal_form": "Limited Liability Company",
    "incorporation_date": "2014-03-11T00:00:00Z",
    "foreign": false,
    "registered_agent": "THE CORPORATION TRUST COMPANY"
  },
  {
    "id": 10000922310455,
    "jurisdiction": "us-tx",
    "name": "ACME HOLDINGS LLC",
    "identifier": "0801934521",
    "status": "Active",
    "legal_form": "Foreign Limited Liability Company",
    "incorporation_date": "2016-07-02T00:00:00Z",
    "foreign": true,
    "registered_agent": "CT CORPORATION SYSTEM"
  }
]
```

## Error Handling

**Error response**

```json
{
  "status": 403,
  "message": "access denied"
}
```

This endpoint can also return `{"status": 402, "message": "payment required"}` when the subscription is canceled or expired, and `{"status": 429, "message": "quota exhausted"}` when the plan’s report quota for the current period is used up.
