Skip to main content
POST
/
api
/
v1
/
auth
/
change-password
Change Password
curl --request POST \
  --url https://roughy-api-staging.fly.dev/api/v1/auth/change-password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "new_password": "fresh-correct-horse-battery-staple",
  "old_password": "old-correct-horse-battery-staple"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.roughy.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

An API key — either a programmatic key minted via POST /api-keys or a session-class key minted by POST /auth/login / an OAuth callback. Pass it as Authorization: Bearer <token>. UI flows can omit the header — the roughy_session HttpOnly cookie set by login + OAuth callbacks is read as a fallback.

Cookies

roughy_session
string | null

Body

application/json

Authenticated password change. Requires the current password so a stolen session key cannot rotate the password without knowledge of the old one.

old_password
string
required
Required string length: 1 - 128
new_password
string
required
Required string length: 8 - 128

Response

Successful Response