Browse the docs ▾

To-dos API

Read the team's to-dos and give someone one. GET /api/v1/todos, POST /api/v1/todos.

Generated from the app's endpoint listView as Markdown

2 operations. Each needs an API key with the permission shown; see API keys and permissions.

OperationPermission
GET /api/v1/todostodos:read
POST /api/v1/todostodos:write

#GET /api/v1/todos

The team's to-dos.

  • Permission: todos:read
  • Returns: a page of records: { data, hasMore, nextCursor }, status 200

Query parameters (all optional)

NameDescription
assigneeIdOnly this team member's.
donefalse (default), true or all.
refTypeprovider, facility, application, open_shift, video_call, issue.
refIdThe record a to-do is about.
limitRows per page, 1 to 200. Default 50.
cursorThe nextCursor value from the previous page.

Fields in each record: id, title, notes, dueOn, assigneeId, createdById, refType, refId, done, doneAt, source, createdAt, updatedAt

curl "https://app.staffedly.com/api/v1/todos?limit=50" \
  -H "Authorization: Bearer $STAFFEDLY_API_KEY"

#POST /api/v1/todos

Give a team member a to-do. A key cannot keep one itself. They are emailed unless they turned that off.

  • Permission: todos:write
  • Returns: one record: { data }, status 201
  • Safe retry: send an Idempotency-Key header (8 to 128 characters); the same key with the same request returns the first answer again

Body fields (JSON; a field the API does not know is refused)

FieldDescription
titleRequired.
assigneeIdRequired unless assigneeEmail is given: an active office team member.
assigneeEmail—
notesOptional.
dueOnOptional YYYY-MM-DD, in your organization's own calendar.
refTypeOptional: provider, facility, application, open_shift, video_call or issue.
refIdWith refType.

Fields in each record: id, title, notes, dueOn, assigneeId, createdById, refType, refId, done, doneAt, source, createdAt, updatedAt

curl -X POST "https://app.staffedly.com/api/v1/todos" \
  -H "Authorization: Bearer $STAFFEDLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"title":"Independent contractor agreement","assigneeId":"<assigneeId>"}'

Something missing or wrong on this page? Email [email protected] or book a free call; our team sets up every new customer at no charge.