API rate limits for bulk work order creation?

POST /work_orders — hitting 429 after ~50 sequential creates. Docs mention 100/min but no burst behavior specified. Need to push 5K records for migration.

Current approach:

for record in dataset:
    POST /work_orders
    sleep(0.6)  # naive rate limit

Still throttled. What's the actual window? Token bucket vs fixed window? Retry-After header sometimes missing.

Also: any batch endpoint planned? Single-request payload limits?

Parents
  • @leo — Can you share the full request/response headers when Retry-After is missing? Need to verify if it's the rate limiter or nginx dropping it.

    @eli.torres — sliding window explains the variance. will implement token bucket on client side.

    re: batch — any webhook ordering guarantees if I chunk and retry? don't want completion events firing out of sequence.

  • webhook ordering: no strict guarantee across separate requests. if you fire job A then job B, and B's worker finishes faster, you'll get B's work_order.created before A's. same for status changes.

    if you need ordering, you'd have to implement sequencing in your receiver (check parent job refs, etc) or... honestly, sequential processing with confirmation before next request. slower but guaranteed.

    there's a feature request for transactional batching with ordered webhook delivery — upvote it if you find it in the feedback board. would solve exactly this.

Reply
  • webhook ordering: no strict guarantee across separate requests. if you fire job A then job B, and B's worker finishes faster, you'll get B's work_order.created before A's. same for status changes.

    if you need ordering, you'd have to implement sequencing in your receiver (check parent job refs, etc) or... honestly, sequential processing with confirmation before next request. slower but guaranteed.

    there's a feature request for transactional batching with ordered webhook delivery — upvote it if you find it in the feedback board. would solve exactly this.

Children
No Data