Skip to content

Receive Inbound Webhook

POST
/api/v1/webhooks/inbound

Receive Asana Rules action POST with full task JSON.

Per PRD-GAP-02 / FR-01, FR-04, FR-05:

  1. Verify URL token (via Depends)
  2. Parse request body as Task
  3. Enqueue background processing
  4. Return 200 immediately

Args: request: FastAPI request for raw body access. background_tasks: FastAPI BackgroundTasks for async processing. _token: Verified token (unused, presence confirms auth).

Returns: 200 with {“status”: “accepted”} for valid payloads. 400 for unparseable or invalid payloads. 401 for auth failures (handled by Depends). 503 if webhook not configured (handled by Depends).

token
Any of:
string

Successful Response

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string