https://discord.gg/botpress logo
Hello fellow botpress devs, I'm trying to use the...
# 💻developers
b
Hello fellow botpress devs, I'm trying to use the Chat API to create a new user (for eventually creating a new conversation), running into problems import requests import json url = "https://chat.botpress.cloud/47d77e43-4218-49f4-9cb4-3ed976c68d9e/users" payload = { "name": "Pranav", "pictureUrl": "www.pranavmodi.com", "profile": "my profile", "id": "prmods" } headers = { "accept": "application/json", "content-type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(f"Status Code: {response.status_code}") print(response.text) This returns a status 200 (not 201) but no error message, what could be going wrong? Following the documentation from this page https://botpress.com/reference/createuser-1
2 Views