POST
/
refresh
Refresh existing session cookies
curl --request POST \
  --url https://prismai.sh/api/refresh \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "domain": "https://github.com",
  "username": "user@example.com"
}'
{
  "cookies": [
    {
      "name": "session_id",
      "value": "xyz789abc123...",
      "domain": ".github.com",
      "path": "/",
      "expires": 1791936891,
      "httpOnly": true,
      "secure": true,
      "sameSite": "Lax"
    }
  ],
  "origins": [
    "<string>"
  ],
  "credentialId": "cred_abc123xyz789",
  "expiresAt": "2024-12-31T23:59:59Z"
}

Authorizations

Authorization
string
header
required

Enter your API key with 'pk_' prefix (from https://prismai.sh/workspace)

Body

application/json

Session refresh parameters

The body is of type object.

Response

Session refreshed successfully

The response is of type object.