Register the Asana real-time webhook

posthttps://api.expiryedge.com/v1/integrations/asana/registerWebhook
editor or admin60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/integrations/asana/registerWebhook' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "resource_gid": "1200000000000042"
}'
Response
{
  "success": true,
  "webhook_gid": "1200000000009001",
  "target": "https://us-central1-expiryedge.cloudfunctions.net/api/integrations/asana/webhook?orgId=org_northwind"
}

Replaces any existing webhook for the organization. resource_gid is a project gid (preferred) or workspace gid.

Body parameters

application/json
  • resource_gidstringrequired

Returns

200
Webhook registered; it becomes active after Asana's handshake.
  • successboolean
    Allowedtrue
  • webhook_gidstring
  • targetstring
    format: uri

Errors

400
The user has no organization, the provider is not connected, validation failed, or the provider API call failed.
401
Missing, expired or invalid bearer token.
403
Authenticated, but your role or organization does not allow this action.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.