Skip to main content
Profiles

Create

Create a profile to group one or more social integrations.

Endpoint

POST https://api.postpeer.dev/v1/profiles

Body Parameters

ParameterTypeRequiredDescription
namestringYesProfile name (1–200 chars). Doesn't need to be unique.
descriptionstringNoFree-form description (max 1000 chars).

Example

curl -X POST https://api.postpeer.dev/v1/profiles \
  -H "x-access-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Acme Co",
    "description": "Marketing accounts"
  }'

Response

{
  "success": true,
  "profile": {
    "id": "65ab...",
    "name": "Acme Co",
    "description": "Marketing accounts",
    "integrationCount": 0,
    "createdAt": "2026-05-03T08:33:36.445Z",
    "updatedAt": "2026-05-03T08:33:36.445Z"
  }
}

Save profile.id. Pass it as ?profileId= when calling /v1/connect/:platform to bind the resulting integration to this profile.

Response Fields

FieldTypeDescription
idstringProfile ID — use as profileId on connect URLs
namestringThe name you provided
descriptionstring | nullThe description you provided
integrationCountintegerNumber of active integrations bound to this profile (always 0 immediately after create)
createdAtstringISO 8601 timestamp
updatedAtstringISO 8601 timestamp

Status Codes

CodeMeaning
201Profile created
400Validation error (missing name, exceeded length, etc.)

On this page