Below is my API, I am trying to pass the information from an input data sheet that contains proper emailaddress, firstname, and lastname, however when i am passing that to api it doesn't get resolved. what am I doing wrong here
import requests
url = "https://api.ZZZ.us/v2/users"
payload = "{\r\n \"action\": \"create\",\r\n \"user_info\": {\r\n
\"email\": \"input_data['emailaddress']\",\r\n \"type\": 1,\r\n \"first_name\": \"input_data['firstname']\",\r\n \"last_name\": \"input_data['lastname']\"\r\n }\r\n}" headers = { 'Accept': "application/json, application/xml", 'Content-Type': "application/json", 'Authorization': "Bearer XXXXX", 'cache-control': "no-cache", 'Postman-Token': "ab32d014-97fb-499e-8adf-c1baf49871e2" }response = requests.request("POST", url, data=payload, headers=headers)
print(response.text) output = {'id': 1333121, 'response': response.text}