---
title: "Create New Client Secret"
method: POST
path: "/v2/credentials/secrets"
tags: ["Client Credentials"]
---

# Create New Client Secret

`POST /v2/credentials/secrets`

Create new client secret for Paylocity-issued client id. See Weblink Authentication section for details.

## Request body

- AddClientSecret — The Add Client Secret Request Model
  - `code` string, required — A value sent with the 'ACTION NEEDED: Web Link API Credentials Expiring Soon.' email notification.

## Response `200`

Successfully added

- ClientCredentialsResponse[]
  - `clientSecret` string — The client's secret
  - `clientSecretExpirationDate` string, paylocity-date — The client's secret expiration date

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/paylocity/apis/assessments-api.md) · [All operations](https://skmtc.net/paylocity/apis/assessments-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/paylocity/assessments-api/revisions/dd22ab229153/schema)
