Productivity & projects
Asana mock API
Asana REST API 1.0: projects, sections, tasks and subtasks, comment stories, tags and signed event webhooks with the X-Hook-Secret handshake.
At a glance
- Operations
- 271
- Stateful operations
- 35
- Stateful resources
- 7
- Webhook events
- 6
- Vendor API version
- 1.0
- Verification
- Spec-verified
How it works
Use Asana without calling Asana, Inc.
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
Authorization: Bearer 1/1200000000000000:ExamplePersonalAccessToken State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Projects | 5 |
| Sections | 6 |
| Tasks and subtasks | 9 |
| Stories (comments) | 2 |
| Tags | 5 |
| Webhooks | 4 |
| Workspaces and users | 4 |
Webhooks
Events your handlers can receive
- project.changed
- task.added
- task.deleted
- task.changed
- story.added
- handshake
Deliveries are signed with the hmac scheme, so your verification code runs unchanged.
Coverage
271 operations
35 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 236 |
| Tasks and subtasks | 9 |
| Sections | 6 |
| Projects | 5 |
| Tags | 5 |
| Webhooks | 4 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
2 operations cannot be checked against the specification.
Source and limits
License, source and limits
- Generated from the Asana, Inc. API description, licensed under Apache-2.0.
- Asana, Inc. API documentation
- Source specification
Each collection (projects, sections, tasks, stories, tags, webhooks) holds up to 1 MiB of objects per access token; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Stateful: projects, sections, tasks and subtasks, comment stories, tags and webhooks, plus seeded read-only workspaces and users; every other operation answers a schema-valid sample. Ids are 16-digit numeric strings: a well-formed unknown gid answers 404 "<noun>: Unknown object: <gid>" (400 for an unknown project or parent inside a task body), other id strings fall through to a generated response. Lists take limit 1-100 and offset tokens (next_page is null on the last page; limit outside 1-100 answers 400). Tasks honour opt_fields for name, completed, assignee, projects, tags, notes and due_on (default compact record); GET /tasks lists every task unless project, section, assignee or completed_since=now narrow it, and does not enforce the vendor's "one of project/section/assignee required" rule. Deleting a project or task leaves its sections, subtasks and stories in place, and adding a task to a section does not add it to the section's project. Webhooks: creation answers 201 with the secret only in the X-Hook-Secret response header and sends one unsigned handshake delivery (event handshake, header X-Hook-Secret) to the target; task.added, task.changed, task.deleted, story.added and project.changed (one event per delivery) are signed with HMAC-SHA256 hex in X-Hook-Signature keyed with the webhook secret. Documented deviations: a webhook's resource is stored but not used to route deliveries (every webhook of the token receives every event, filtered only by the resource_type.action pairs of its filters), the target is not required to answer the handshake, and there is no retry or heartbeat bookkeeping. Not reproduced: custom fields, portfolios, goals, attachments, the batch API, search, rate limits.
MaxoPerf is not affiliated with, endorsed by, or sponsored by Asana, Inc. Asana is a trademark of its owner.