Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Access errors due to "Contract not signed" (HTTP 403)

Access to MailUp resource resources may fail if the authenticated user has not signed the "Terms of service" yet. When this happens, you simply have to access to MailUp admin console using the same user and accept terms and conditions that are displayed immediately after user login.

Code Block
titleRefresh the access token
curl -H "Authorization:Bearer MYACCESSTOKEN" /
		-H "Content-Type:application/x-www-form-urlencoded" /
		https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/1/Groups

Response:
{	"ErrorCode":"403",
	"ErrorDescription":"Authorization error: Contract not signed, please login in console and accept terms of service.",
	"ErrorName":"Forbidden",
	"ErrorStack":null}

 

Access errors due to "Too Many Requests" (HTTP 429)

Access to MailUp resources may fail if the client exceeds the expected rate limit. The returned message shows both the exceeded theshold and the actual number of received calls.

Code Block
titleRefresh the access token
curl -H "Authorization:Bearer MYACCESSTOKEN" /
		-H "Content-Type:application/x-www-form-urlencoded" /
		https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/1/Groups

Response:
{	"ErrorCode":"429",
	"ErrorDescription":"Authorization error (too_many_requests): Too many requests. Max:5 calls per second , actual:10.",
	"ErrorName":null,
	"ErrorStack":null}