---
title: "Changes to Create a service token"
method: POST
path: "/organizations/{organization}/service-tokens"
---

# Changes to Create a service token

`POST /organizations/{organization}/service-tokens`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 3 of 25 revisions.

- **2026-06-01** `72506953f367` — 15 breaking
- **2026-01-15** `dc925104456c` — 1 info
- **2025-12-04** `5e881928d77a` — 1 info

## Changes

- **2026-06-01** `72506953f367` — 15 breaking
  - the response property `actor_display_name` became nullable for the status `200`
  - the response property `actor_id` became nullable for the status `200`
  - the response property `actor_type` became nullable for the status `200`
  - the response property `expires_at` became nullable for the status `200`
  - the response property `last_used_at` became nullable for the status `200`
  - the response property `name` became nullable for the status `200`
  - the response property `oauth_accesses_by_resource` became nullable for the status `200`
  - the response property `plain_text_refresh_token` became nullable for the status `200`
  - the response property `service_token_accesses` became nullable for the status `200`
  - the response property `service_token_accesses/items/resource/deleted_at` became nullable for the status `200`
  - the response property `token` became nullable for the status `200`
  - the response property `oauth_accesses_by_resource` became optional for the status `200`
  - the response property `plain_text_refresh_token` became optional for the status `200`
  - the response property `service_token_accesses` became optional for the status `200`
  - the response property `token` became optional for the status `200`
- **2026-01-15** `dc925104456c` — 1 info
  - added the new optional request property `ttl`
- **2025-12-04** `5e881928d77a` — 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/planetscale/apis/planetscale-api/docs/organizations/:organization/service-tokens/post.md) · [API](https://skmtc.dev/planetscale/apis/planetscale-api.md) · [Page](https://skmtc.dev/planetscale/apis/planetscale-api/changes/organizations/:organization/service-tokens/post)
