Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API to create aliases? #98

Closed
AquiGorka opened this issue Mar 3, 2020 · 10 comments
Closed

API to create aliases? #98

AquiGorka opened this issue Mar 3, 2020 · 10 comments

Comments

@AquiGorka
Copy link

Hello there, I'm looking at simple login and it looks solid, I would like to be able to create aliases programmatically and for this I was looking for such an API. Could you point me in the right direction?

@nguyenkims
Copy link
Contributor

Hey SimpleLogin API doc is at https://github.com/simple-login/app#api. The endpoints are currently used by browser extensions and (work-in-progress) mobile apps.

To create aliases, you can use this endpoint
POST /api/alias/custom/new for custom alias or POST /api/alias/random/new for random alias.

Btw what scenario do you want to create?

@AquiGorka
Copy link
Author

Hey @nguyenkims thanks for the quick reply, I'm looking at being able to create aliases programmatically and give them to end-users from within my own app.

@AquiGorka
Copy link
Author

Come to think about it, I have another question @nguyenkims: is there a way to link an alias to a webhook? Meaning, any incoming email to the alias triggers a request to the webhook with the email data as payload?

@leshokunin
Copy link

@nguyenkims for a whole overview:
We're building an email automation service, where we want to be able to give our users:

  • as many aliases as possible
  • send/receive from those aliases
    We'd need to be able to create/read/update/delete aliases via the API, as well as get the whole email payload (subject, to, body, attachments).
    Is this something you already have or are interested in developing?

@nguyenkims
Copy link
Contributor

@leshokunin @AquiGorka sounds interesting, feel free to drop me an email at partner@simplelogin.io so we can discuss more in details!

@nguyenkims
Copy link
Contributor

@leshokunin @AquiGorka should I close this issue?

@AquiGorka
Copy link
Author

@nguyenkims thanks for the info, I have a follow-up question: is there an API to programmatically create new namespaces for aliases?
eg -> @namespace.mydomain.com

@nguyenkims
Copy link
Contributor

@AquiGorka We don't have an api to create namespace/directory yet. This endpoint is in our todo list as it's necessary for our browser extension or mobile apps.

@nguyenkims
Copy link
Contributor

@AquiGorka should I close this issue?

@AquiGorka
Copy link
Author

Yes, thank you very much for all the follow-up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants