---
title: "Get API credentials"
method: POST
path: "/v1/oauth/credentials"
tags: ["Auth"]
---

# Get API credentials

`POST /v1/oauth/credentials`

## Request

- Base URL: `https://api.racehooks.io`
- URL: `https://api.racehooks.io/v1/oauth/credentials`
- Auth: none declared

Retrieve your client_id and client_secret using a session cookie (from POST /v1/auth/login or POST /v1/auth/verify-email). Feed the result into POST /v1/oauth to obtain a Bearer token. Requires CLIENT_SECRET_ENCRYPTION_KEY to be configured server-side.

## Response `200`

Credentials returned

- object: Credentials returned
  - `data` object
    - `clientId` string: Your API client ID
    - `clientSecret` string: Your API client secret

---

[API](https://skmtc.dev/racehooks/apis/racehooks-api.md) · [All operations](https://skmtc.dev/racehooks/apis/racehooks-api/llms.txt) · [OpenAPI document](https://skmtc.dev/racehooks/apis/racehooks-api/revisions/2335b73f46e4?raw)
