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

# Partner API

> Bring incorporation into your product. Expedite handles the formation workflow.

Create a referral from your backend. Your customer receives an invitation to
complete their Delaware C Corporation in Expedite, while your team follows their
progress through the API or Partner Console.

```bash cURL wrap theme={null}
EXPEDITE_API=https://api.expedite.now/api/partners/v1
INVITATION_KEY=atlas-labs-incorporation-001

curl "$EXPEDITE_API/incorporations" \
  --header "Authorization: Bearer $EXPEDITE_ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --header "Idempotency-Key: $INVITATION_KEY" \
  --data '{
    "externalReference": "atlas-labs-001",
    "email": "alex@example.com",
    "givenName": "Alex",
    "familyName": "Morgan",
    "companyName": "Atlas Labs"
  }'
```

```javascript JavaScript wrap theme={null}
const response = await fetch("https://api.expedite.now/api/partners/v1/incorporations", {
	method: "POST",
	headers: {
		Authorization: `Bearer ${process.env.EXPEDITE_ACCESS_TOKEN}`,
		"Content-Type": "application/json",
		"Idempotency-Key": "atlas-labs-incorporation-001",
	},
	body: JSON.stringify({
		externalReference: "atlas-labs-001",
		email: "alex@example.com",
		givenName: "Alex",
		familyName: "Morgan",
		companyName: "Atlas Labs",
	}),
})
if (!response.ok) throw new Error(`Invitation failed: ${response.status}`)
const referral = await response.json()
console.log(referral.id)
```

```python Python wrap theme={null}
import json
import os
from urllib.request import Request, urlopen

request = Request("https://api.expedite.now/api/partners/v1/incorporations", data=json.dumps({
    "externalReference": "atlas-labs-001",
    "email": "alex@example.com",
    "givenName": "Alex",
    "familyName": "Morgan",
    "companyName": "Atlas Labs",
}).encode(), headers={
    "Authorization": "Bearer " + os.environ["EXPEDITE_ACCESS_TOKEN"],
    "Content-Type": "application/json",
    "Idempotency-Key": "atlas-labs-incorporation-001",
})
with urlopen(request) as response:
    referral = json.load(response)
print(referral["id"])
```

```json 201 Created (excerpt) theme={null}
{
	"id": "ref_atlas_labs_001",
	"externalReference": "atlas-labs-001",
	"companyName": "Atlas Labs",
	"invitation": {
		"status": "QUEUED"
	},
	"progress": null,
	"version": 1
}
```

> [card] [Send your first invitation](https://docs.opson.ai/guides/quickstart.md)
>
> Get a token, invite a founder, and read their progress.

> [card] [Explore the API](https://docs.opson.ai/api-reference/incorporations/create.md)
>
> Requests, responses, and permissions for every endpoint.

## One referral, from invitation to EIN

**1. Invite your customer**

Send their name, email, and your customer reference. Keep the returned referral ID to connect their
incorporation to your product.

**2. Let the founder complete their application**

The founder signs in, completes the forms, and signs their documents in Expedite. Your dashboard and API reflect
the progress they have agreed to share.

**3. Act on verified milestones**

Receive a signed webhook when progress changes. Fetch the current status to learn when Delaware approves the
company or the EIN is issued.

## Build your integration

| Task | Guide |
| - | - |
| Connect your server | [Authentication and permissions](https://docs.opson.ai/guides/authentication.md) |
| Receive progress updates | [Webhook setup and signature verification](https://docs.opson.ai/guides/webhooks.md) |
| Know when an EIN is ready | [EIN notifications](https://docs.opson.ai/guides/ein-notifications.md) |
| Retrieve documents with founder consent | [Progress and documents](https://docs.opson.ai/guides/progress-and-documents.md) |
| Recover from retries and failures | [Retries and errors](https://docs.opson.ai/guides/reliability.md) |

Partner access is enabled by Expedite. Once your organization is approved, create
API credentials in **Partner Console → Integration**. Use sandbox credentials to
test the workflow before sending a real invitation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.