Submit a Project
Submit a Project
Submit seals a project’s staged lines and starts enrichment. Rows that share a
designation collapse into one product with an occurrence counter. The call is
idempotent: re-submitting a sealed project is a no-op.
Pass an optional webhookUrl to receive a single signed POST when enrichment
completes (see Verify a Webhook Signature).
Endpoint
POST https://api.dangofish.com/api.v1.Service/SubmitAuthorization: Bearer dk_org_...
Content-Type: application/jsonRequest
{
"projectId": "aB3xK9",
"webhookUrl": "https://example.com/hooks/dango"
}webhookUrl is optional. When omitted, poll Get Progress
instead.
Response
{ "status": "enriching" }Examples
curl -X POST https://api.dangofish.com/api.v1.Service/Submit \
-H "Authorization: Bearer $DANGO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"projectId": "aB3xK9", "webhookUrl": "https://example.com/hooks/dango"}'Errors
Unauthenticated: missing or invalid API key.PermissionDenied: the project belongs to another organization.FailedPrecondition: the project has no rows to seal.InvalidArgument: thewebhookUrlis not a valid URL. Delivery also refuses loopback, private, and link-local addresses at connection time (SSRF guard).