Hi All,
We are evaluating Monday as a possible new platform to replace our current PMO solution, and I’m trying to test out the API.
I was able to generate an API key using an admin account and attempted to connect to the API using the simple example code provided in the documentation.
import requests
import json
apiKey = "NotMyRealAPIKey"
headers = {"Authorization" : apiKey, "API-Version" : "2023-04"}
query2 = 'query { boards (limit:1) {id name} }'
data = {'query' : query2}
r = requests.post(url=apiUrl, json=data, headers=headers)
However I was surprised to immediately get an error when running this:
Exception has occurred: SSLError
HTTPSConnectionPool(host=‘api.monday.com’, port=443): Max retries exceeded with url: /v2 (Caused by SSLError(SSLCertVerificationError(1, ‘rSSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)’)))
ssl.SSLCertVerificationError: iSSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)
Would appreciate if I’m missing something obvious here.