LETTER REQUEsT
http://api.kopeechka.store/mailbox-get-message?full=$FULL&id=$TASK_ID&token=$TOKEN&type=$TYPE&api=2.0
$FULL - Specify 1 if you need to return the full message, not just the link (sometimes you need to save traffic).
$TASK_ID - ID of the activation to which we should receive the message.
$TOKEN - Your API key from kopeechka.store
$TYPE - Specify in what form to give you the letter (JSON (by default) / TEXT (the body of the letter) )
✅ Answer:
JSON
{"status":"OK","value":"ВАША_ССЫЛКА","fullmessage":"FULL_MESSAGE(ON_REQUEST)"}
TEXT
If you select this type of response, you will be returned a full email (if $FULL=1) or only the paired data.
If $FULL=0 (return only the link), but the link could not be parsed, the full letter will also be returned.
❌ Possible errors:
Invalid token
JSON
{"status":"ERROR","value":"BAD_TOKEN"}
TEXT
ERROR|BAD_TOKEN
Invalid $TASK_ID activation.
JSON
{"status":"ERROR","value":"NO_ACTIVATION"}
TEXT
ERROR|NO_ACTIVATION
The mail was canceled.
JSON
{"status":"ERROR","value":"ACTIVATION_CANCELED"}
TEXT
ERROR|ACTIVATION_CANCELED
The letter has not been received yet.
JSON
{"status":"ERROR","value":"WAIT_LINK"}
TEXT
ERROR|WAIT_LINK
Have you figured it out? Rather try :)