Users & Profiles

Create an API key

Authenticated. Issues a new personal API key for the signed-in user with an optional expiresInDays. The plaintext key is returned only once in this response and cannot be retrieved again.

post/api/v1/users/me/api-keys

Request

  • Base URL: https://api.skills-hub.ai
  • URL: https://api.skills-hub.ai/api/v1/users/me/api-keys
  • Auth: one of:
    • HTTP bearer
    • API key in header Authorization

Response

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

idstring required
namestring required
keyPrefixstring required

Non-secret display prefix, e.g. 'sh_abc123...'

keystring required

Full plaintext API key — shown only at creation.

lastUsedAtstring date-time nullable required
expiresAtstring date-time nullable required
createdAtstring date-time required
requestsLast30Daysinteger required

Metered requests attributed to this key over the trailing 30 UTC days. Always 0 at creation.

Changes

No recorded changes to this operation across all 1 revision of this API.