Internal

Generate auto-login URL for Slack relay

M2M endpoint called by cv-slack relay. Returns a one-time URL that logs the user into CV and redirects to the conversation.

post/internal/slack-auth/auto-login

Request

  • Base URL: https://api.carbonvoice.app
  • URL: https://api.carbonvoice.app/internal/slack-auth/auto-login
  • Auth: none declared

Request body

cv_user_idstring required

Carbon Voice user ID of the recipient

slack_user_idstring required

Slack user ID of the recipient

emailstring required

Recipient email for login confirmation screen

cv_conversation_idstring required

CV channel/conversation GUID to redirect to

first_namestring

Recipient first name (used when creating Slack identity)

last_namestring

Recipient last name (used when creating Slack identity)

image_urlstring

Recipient profile image URL (used when creating Slack identity)

Example request

{
  "cv_user_id": "usr_abc123",
  "slack_user_id": "U01234567",
  "email": "user@example.com",
  "cv_conversation_id": "ch_xyz789",
  "first_name": "Jane",
  "last_name": "Doe",
  "image_url": "https://avatars.slack-edge.com/xxx"
}

Response

Auto-login URL generated successfully

urlstring required

One-time auto-login URL with embedded session token (short TTL)

Example response

{
  "url": "https://carbonvoice.app/c/ch_xyz789?a=token&u=usr_abc&m=cp"
}

Changes

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