Sandbox endpoint to test creating new contact via API


What sandbox endpoint should be for create new contact? ?

My Hub ID - 5038633

My api request to create or update email{$email}?hapikey={$apiKey}&userId=6619185

I receive error

HTTP/1.1 403 Forbidden\r\nDate: Thu, 18 Oct 2018 09:57:58 GMT\r\nContent-Type: application/json;charset=utf-8\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\nSet-Cookie: __cfduid=dce3dcccd2741bcdd761f9bd723b160bf1539856678; expires=Fri, 18-Oct-19 09:57:58 GMT; path=/;; HttpOnly\r\nX-Trace: 2BB3C35B28CB3D6B1EAE8EE9FB63F6DB10E51BA8F8000000000000000000\r\nVary: Accept-Encoding, Accept-Encoding\r\nAccess-Control-Allow-Credentials: false\r\nStrict-Transport-Security: max-age=31536000; includeSubDomains; preload\r\nExpect-CT: max-age=604800, report-uri=""\r\nServer: cloudflare\r\nCF-RAY: 46ba24d1aa6e8ac8-KBP\r\n\r\n{"status":"error","message":"This hapikey ({my_api_key}) does not have proper permissions! (requires all of [contacts-write])","correlationId":"10bf65fb-eba5-4af0-9235-94c505c567ed","requestId":"1eae6870474110bf7e8c15cc2539e28d"}


Hi @Denis_Makarenko,

Happy to help. To troubleshoot effectively, though, I'll need a bit more information. Would you share:
1. The full request URL you used, including the method.
2. The raw request body, including the headers.

One thing I did notice is that you have another query parameter at the end of your request URL. This endpoint does not take any additional optional parameters, so you should not be including the userId in your request.


Thank you. All works fine now.