---
title: "Changes to Create Credential"
method: POST
path: "/api/v1/service_principals/{service_principal_id}/credentials"
---

# Changes to Create Credential

`POST /api/v1/service_principals/{service_principal_id}/credentials`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 2 of 34 revisions.

- **2026-08-21** `f2cf3228f366` — 4 breaking, 10 warning, 1 info
- **2026-03-10** `7fa698b04b81` — 1 info

## Changes

- **2026-08-21** `f2cf3228f366` — 4 breaking, 10 warning, 1 info
  - the request property `allowSourceCidrs` became not nullable
  - the request property `scopedRoles` became not nullable
  - added `#/components/schemas/c1.api.service_principal.v1.ServicePrincipalCredential, subschema #2` to the `credential` response property `oneOf` list for the response status `200`
  - the `credential` response's property type changed from `object` to no type for status `200`
  - removed the optional property `credential/allowSourceCidrs` from the response with the `200` status
  - removed the optional property `credential/clientId` from the response with the `200` status
  - removed the optional property `credential/createdAt` from the response with the `200` status
  - removed the optional property `credential/displayName` from the response with the `200` status
  - removed the optional property `credential/expiresAt` from the response with the `200` status
  - removed the optional property `credential/id` from the response with the `200` status
  - removed the optional property `credential/lastUsedAt` from the response with the `200` status
  - removed the optional property `credential/requireDpop` from the response with the `200` status
  - removed the optional property `credential/scopedRoleIds` from the response with the `200` status
  - removed the optional property `credential/servicePrincipalId` from the response with the `200` status
  - the request property `expires` became nullable
- **2026-03-10** `7fa698b04b81` — 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/conductorone/apis/c1-api/docs/api/v1/service_principals/:service_principal_id/credentials/post.md) · [API](https://skmtc.dev/conductorone/apis/c1-api.md) · [Page](https://skmtc.dev/conductorone/apis/c1-api/changes/api/v1/service_principals/:service_principal_id/credentials/post)
