cURL
curl --request POST \ --url https://api.morphic.io/api/chats/{chat_id}/share \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "expires_at": "2023-11-07T05:31:56Z" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "token": "<string>", "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "expires_at": "2023-11-07T05:31:56Z" }
Create a shareable link for a chat.
API key (sk_xxx) from Developer Settings. No X-Account-ID needed.
Successful Response