Workspace

Generate API key for managed user

Generate a new API key for a managed user. This key can be used to make API calls on behalf of the managed user (e.g., create posts to their connected social accounts).

Requires Workspace access - contact serge@publora.com to enable.

post/workspace/users/{userId}/api-key

Path parameters

userIdstring required

Response

API key generated

messagestring
apiKeystring

The generated API key (save it securely - shown only once)

userIdstring

Example response

{
  "message": "API key generated successfully",
  "apiKey": "sk_lx5abc.a1b2c3d4e5f6..."
}

Changes