Skip to main content
POST
/
api
/
settings
/
initialize
curl -X POST https://api.dyeink.com/api/settings/initialize \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "siteName": "My New Blog",
    "siteDescription": "Welcome to my blog",
    "subdomain": "my-unique-blog"
  }'
{
  "id": "507f1f77bcf86cd799439011",
  "userId": "user123",
  "siteName": "My New Blog",
  "siteDescription": "Welcome to my blog",
  "customDomain": null,
  "subdomain": "my-unique-blog",
  "domainStatus": null,
  "createdAt": "2024-03-04T10:30:00.000Z",
  "updatedAt": "2024-03-04T10:30:00.000Z"
}

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/subratomandal/dyeink/llms.txt

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

Creates initial settings for a new user. If settings already exist for the user, returns the existing settings without modification.

Authentication

Requires authentication via Authorization header with Bearer token.

Body Parameters

siteName
string
Display name of the site. Defaults to the user’s name or “My Blog”
siteDescription
string
Description of the site. Defaults to an empty string
subdomain
string
Subdomain for the site. Defaults to blog-{userId} format

Response

Returns the created or existing settings object.
id
string
Unique identifier for the settings document
userId
string
ID of the user who owns these settings
siteName
string
Display name of the site
siteDescription
string
Description of the site
customDomain
string | null
Custom domain (null for new settings)
subdomain
string | null
Subdomain for the site
domainStatus
string | null
Status of the custom domain (null for new settings)
createdAt
string
ISO 8601 timestamp when settings were created
updatedAt
string
ISO 8601 timestamp when settings were last updated
curl -X POST https://api.dyeink.com/api/settings/initialize \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "siteName": "My New Blog",
    "siteDescription": "Welcome to my blog",
    "subdomain": "my-unique-blog"
  }'
{
  "id": "507f1f77bcf86cd799439011",
  "userId": "user123",
  "siteName": "My New Blog",
  "siteDescription": "Welcome to my blog",
  "customDomain": null,
  "subdomain": "my-unique-blog",
  "domainStatus": null,
  "createdAt": "2024-03-04T10:30:00.000Z",
  "updatedAt": "2024-03-04T10:30:00.000Z"
}