POST
/
signup
Register new user account
curl --request POST \
  --url https://prismai.sh/api/signup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "signup_method": "email",
  "domain": "https://github.com/join",
  "cred": {
    "email": "newuser@example.com",
    "password": "securePassword123",
    "username": "newuser@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

Registration credentials and method

signup_method
enum<string>
required

Registration method to use.

Available options:
email,
oauth,
invitation
domain
string
required

Full URL to the signup page of the target website

Example:

"https://github.com/join"

cred
object
invite_token
string

Invitation token (required when signup_method is 'invitation')

Example:

"inv_abc123xyz789"

collectionId
string

Optional collection ID for organizing credentials

Example:

"col_abc123xyz789"

Response

Registration successful

cookies
object[]
required

Array of session cookies to be set in the browser

origins
string[]
required

Array of allowed origins for the session

credentialId
string
required

Reference ID for future refresh operations Stored credential ID for future refresh operations

Example:

"cred_abc123xyz789"

expiresAt
string<date-time>

Session expiration timestamp

Example:

"2024-12-31T23:59:59Z"