APIs & Integrations


Receiving a 400 Error When Trying to Post Users

Hello, I am creating an application that generates a large number of users (2600 users) for some QA testing we are doing for an integration on our platform. I was able to successfully create 200 users before I started receiving an HTTP 400 error. 


Here's an example command that I am sending:

curl --request POST \
--url https://api.hubapi.com/settings/v3/users/ \
--header 'authorization: Bearer <My Access Token>' \
--header 'content-type: application/json' \
--data '{
"email": "user201@zillasecurity.com",
"sendWelcomeEmail": "false"


Here is the Response I Receive:
{"status":"error","message":"User cannot be added at this time.","correlationId":"d8aba474-958d-43fe-9383-ae30bccfa875","category":"VALIDATION_ERROR"}


The error gives me very little info about what is actually causing the validation error, so I'd like to see if I can get more information on what is causing the problem.


Once again, this worked for 200 accounts, so I'm unsure why I am now receiving this error.


Let me know if I can provide any additional info.


1 Reply 1
Community Manager
Community Manager

Receiving a 400 Error When Trying to Post Users

Hey, @IIt7 👋 Did you make any progress with this one? If not, I have a few questions.


  • Is this reproducible on your end?
  • If so, does it consistently halt at 201?
  • Or will it continue if you have a different 201st User?
  • Is there anything different about the pattern of the email address from others you're testing with? 
  • Does this address give you any issues is you try to create the user in-app?


Thanks for the additional information.






Jaycee Lewis

Developer Community Manager

Community | HubSpot