cURL
curl --request POST \ --url https://api.dualship.run/api/v1/workspaces/{id}/invitations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "role_id": "<string>", "email": "<string>", "expires_in_hours": 360 } '
{ "created_at": "<string>", "email": "<string>", "expires_at": "<string>", "id": "<string>", "invite_url": "<string>", "inviter_name": "<string>", "role": { "id": "550e8400-e29b-41d4-a716-446655440002", "name": "admin" }, "token": "<string>", "workspace_name": "<string>" }
Create an invitation to join a workspace (requires owner or admin role)
JWT Bearer token authentication
Workspace ID
Invitation details
1 <= x <= 720
Invitation created
Role information
Show child attributes
Was this page helpful?