Updated November 1, 2026

API tokens for external tools

Create read-only or read-write tokens, set expiry, revoke them, and call the workspace API from scripts.

When you need a token

An API token lets an external tool or an automation script access your workspace on your behalf without a password. For example: a nightly sync to another system such as a CRM, or searching from an internal tool.

API tokens are available on the Pro and Team plans. For your personal book you need Pro; for a team book, that book must be on the Team plan. On Free, Lite and Plus you cannot create tokens, and older tokens cannot access those books. Reading data with a token does not affect refunds; see the refund policy.

Create a token

Settings › API tokens › Create token:

  • Label: a name you will recognise, for example “CRM sync script”
  • Permission: Read only or Read and write
  • Workspace: bind the token to a specific workspace, or leave it unbound (uses the default directory)
  • Valid for: a number of days

The token string is shown only once. Copy it right away; it cannot be viewed again, only replaced by a new one.

The list shows each token’s expiry and when it was last used. Revoke a token and any device using it loses access immediately.

Call the API

Send the token in the Authorization header. Example that fetches the 50 newest contacts:

curl -H "Authorization: Bearer <token>" \
  "https://api.gencard.jp/api/v1/contacts?size=50&sort=created-desc"

Commonly used endpoints. API endpoints return JSON; the image path returns the image data.

Purpose Call
List or search contacts GET /api/v1/contacts?q=&country=&group=&page=&size=
One contact GET /api/v1/contacts/{id}
Workspace statistics GET /api/v1/contacts/stats
Download an export file (CSV, vCard, CRM template) GET /api/v1/contacts/export?format=csv (vcf, kintone, salesforce, hubspot; same filters as the list)
Edit a contact (read-write token) PATCH /api/v1/contacts/{id}
Card image GET /images/{key} (the key is in the contact data)
Jobs in progress GET /api/v1/jobs
Credit balance GET /api/v1/usage/current

Uploading cards through the API uses the same draft/confirm flow as the app. Detailed technical documentation is provided when you need a deeper integration.

Image authentication and access

GET /images/{key} is not a public image URL. It is authenticated with a valid web session cookie dt_session or a valid API token in Authorization: Bearer <token> (read permission is enough). Bearer takes precedence, and an invalid, expired or revoked Bearer token never falls back to the cookie. Do not put tokens in URLs.

The image key ws/{workspace_id}/… determines the workspace. The selected-workspace cookie dt_ws and the X-Workspace-ID header cannot switch it. You must be a member of that workspace, and a workspace-bound token cannot read another workspace. Knowing the key alone does not grant access.

Missing authentication returns 401, a bound token for a different workspace returns 403, and no membership, an invalid key or a missing file returns 404. Draft images under capture-drafts cannot be fetched through this route; use the draft image endpoint, which checks both the creator and the workspace. The response is the image file, not JSON, with Cache-Control: private, max-age=86400.

Keep tokens safe

  • Create a read-only token if you only need to search.
  • Give temporary scripts a short expiry.
  • Do not paste tokens into email or chat. If a token may have leaked, revoke it, create a new one, and check the permissions of the new token as well.

Start free with 10 AI Credits a day

No credit card required. Try it with the business cards you already have, then review and correct the results if needed.