Skip to content

Workspaces

MethodPath
GET/workspaces
POST/workspaces
GET/workspaces/:id
PATCH/workspaces/:id
DELETE/workspaces/:id

Connections

MethodPathPurpose
GET/workspaces/:id/connectionsList
DELETE/workspaces/:id/connections/:connIdDisconnect (keeps OAuth)
POST/workspaces/:id/connections/:connId/revokeRevoke OAuth
PATCH/workspaces/:id/connections/:connId/pagesUpdate Facebook / Instagram target

Members

MethodPath
GET/workspaces/:id/members
PATCH/workspaces/:id/members/:userId
DELETE/workspaces/:id/members/:userId

Invitations

MethodPath
POST/workspaces/:id/invitations
GET/workspaces/:id/invitations
DELETE/workspaces/:id/invitations/:inviteId

API keys

MethodPath
GET/workspaces/:id/api-keys
POST/workspaces/:id/api-keys
DELETE/workspaces/:id/api-keys/:keyId

POST /workspaces/:id/api-keys

bash
curl -X POST https://api.socifyr.com/api/workspaces/<id>/api-keys \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{ "label": "CI bot" }'

Response — note plaintext is only returned once:

json
{
  "success": true,
  "data": {
    "id": "c51b393e-40d1-481e-94c3-042726c44ad1",
    "prefix": "sk_4b7378404",
    "label": "CI bot",
    "createdAt": "...",
    "plaintext": "sk_full_key_only_shown_once..."
  }
}