TechArticle

u0life API

ユーザー所有の API キーで外部ツールから u0life のタスクとクライアントを作成します。

Public API overview

The u0life public API lets external systems work with records owned by a user API key. Task creation and client list/create endpoints are available now; notes, time and money pages describe the resource contracts prepared for the next public endpoints.

Use the API for server-to-server automations: CRM callbacks, website forms, support queues, calendar tools, scripts and other trusted services that need to add work history to u0life.

  • Create a user API key in the u0life integrations section.
  • Send the key as Authorization: Bearer u0_live_your_key.
  • Send JSON with Content-Type: application/json.
  • IDs such as client_id, project_id and category_id must belong to the API key owner.

Base task request

POST https://u0life.com/public-api/v1/tasks/ Live endpoint for creating tasks.
curl -X POST https://u0life.com/public-api/v1/tasks/ \
  -H "Authorization: Bearer u0_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"title":"Call client","description":"Created from external API"}'

Base client request

GET https://u0life.com/public-api/v1/clients/ Live endpoint for listing clients.
curl -X GET "https://u0life.com/public-api/v1/clients/?limit=50&offset=0" \
  -H "Authorization: Bearer u0_live_your_key"

Responses and errors

Successful creates return HTTP 201 with success true and a data object containing id and type. Validation and permission errors return success false with an error code and message.

{"success":true,"data":{"id":123,"type":"task"}}
{"success":false,"error":{"code":"TITLE_REQUIRED","message":"Task title is required."}}

Sections