Partner route: called with the partner API key, not a user token. Finds the lawyer by lawyerEmail or, when there is no such user, creates the user and an organization (named from organizationName or the email domain) with a subscription. Then creates the case and attaches the partner integration with goodfactEndpoint and caseAPIKey, and returns that integration (type, attach date, remote case id and name).
POST
/integration/goodfact/create
curl \
--request POST 'http://api.example.com/integration/goodfact/create' \
--header "Content-Type: application/json" \
--data '{
"lawyerEmail": "string",
"organizationName": "string",
"goodfactCaseName": "string",
"goodfactEndpoint": "string",
"caseAPIKey": "string"
}'
Request examples
{
"lawyerEmail": "string",
"organizationName": "string",
"goodfactCaseName": "string",
"goodfactEndpoint": "string",
"caseAPIKey": "string"
}
Response examples (201)
{
"data": {
"createdAt": "2026-01-15T14:30:00.000Z",
"updatedAt": "2026-01-15T14:30:00.000Z",
"id": "507f1f77bcf86cd799439011",
"integrationType": "clio",
"attachedAt": "2026-01-15T14:30:00.000Z",
"remoteCaseId": "1234567890",
"remoteCaseName": "Doe v. Example Corp"
},
"statusCode": 201,
"timestamp": "2026-01-15T10:15:00.000Z"
}