Workspaces
| Method | Path |
|---|---|
GET | /workspaces |
POST | /workspaces |
GET | /workspaces/:id |
PATCH | /workspaces/:id |
DELETE | /workspaces/:id |
Connections
| Method | Path | Purpose |
|---|---|---|
GET | /workspaces/:id/connections | List |
DELETE | /workspaces/:id/connections/:connId | Disconnect (keeps OAuth) |
POST | /workspaces/:id/connections/:connId/revoke | Revoke OAuth |
PATCH | /workspaces/:id/connections/:connId/pages | Update Facebook / Instagram target |
Members
| Method | Path |
|---|---|
GET | /workspaces/:id/members |
PATCH | /workspaces/:id/members/:userId |
DELETE | /workspaces/:id/members/:userId |
Invitations
| Method | Path |
|---|---|
POST | /workspaces/:id/invitations |
GET | /workspaces/:id/invitations |
DELETE | /workspaces/:id/invitations/:inviteId |
API keys
| Method | Path |
|---|---|
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..."
}
}