Collaborators

Invite a collaborator

Invites a CodePen user, by username or email, as an Editor or a Viewer. Invites count against the owner's plan. The answer is the pending invitations.

post/v2/pens/{id}/collaborators

Request

  • Base URL
    https://api.codepen.io
  • Auth
    • HTTP bearer
    • or API key in header X-API-Key

Request body

email_or_usernamestring required
role'Editor' | 'Viewer' required

Response

The pending invitations.

created_atstring date-time required
emailstring nullable required
idstring required
role'Owner' | 'Editor' | 'Viewer' required
usernamestring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.