Share your repls and programming experiences

← Back to all posts
[] Public API v1 and python library - send emails from through the api
MarcusWeinberger (772)

Welcome! I am happy to announce the initial release of API v1

View this project on PyPi, or look at this demo repl to see usage examples (python).

Get your API key here


For every request, your username and api token must be included in the headers. Here's how to do it in cURL:

curl -H "user: MarcusWeinberger" -H "token: xxxx-xxxx-xxxx-xxxx"

All API requests must be POST, and data should be sent as JSON.

VivaanSa (29)
Traceback (most recent call last):
  File "", line 62, in <module>
    res = client.send(to, subj, text=text)
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/replemail/", line 35, in send
    return self._call('/send', data={
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/requests/", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3.8/json/", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
MarcusWeinberger (772)

@VivaanSa yes but with what arguments (remove any confidential information)

VivaanSa (29)

name: @VivaanSa
API key: f149bd30-d34b-4278-b5c2-725f6cc2ca35
to: **
subject: hello
text: hi

adl212 (166)

Cool! This will definitely be useful for me!

StringentDev (202)

are you able to create a js version for it, python is tricky to deal with in electron when you need to get info back plus you will need to use argparse. @MarcusWeinberger

StringentDev (202)

haha, get your keys here... can't login anymore... @MarcusWeinberger

StringentDev (202)

ahh. there is a DOM error:

authWithReplco.js:1 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('') does not match the recipient window's origin ('').
onLoad @ authWithReplco.js:1