[GH-ISSUE #832] Account API #742

Closed
opened 2026-02-27 11:13:19 +03:00 by kerem · 9 comments
Owner

Originally created by @tonioo on GitHub (Feb 4, 2016).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/832

Add new services to the API to:

  • Retrieve a list of accounts (global or per domain)
  • Get a single account
  • Create a new account
  • Modify an account
  • Delete an account
Originally created by @tonioo on GitHub (Feb 4, 2016). Original GitHub issue: https://github.com/modoboa/modoboa/issues/832 Add new services to the API to: - Retrieve a list of accounts (global or per domain) - Get a single account - Create a new account - Modify an account - Delete an account
kerem 2026-02-27 11:13:19 +03:00
Author
Owner

@gawel commented on GitHub (Mar 2, 2016):

Another good service that you can add is "email exists". Since in the real world the only way to be sure that an email exist is to send an email, it would be cool if modoboa can provide this.

Something like:

GET /api/accounts/<email>/exists
{exists: (true|false}}

Thought ?

<!-- gh-comment-id:191170450 --> @gawel commented on GitHub (Mar 2, 2016): Another good service that you can add is "email exists". Since in the real world the only way to be sure that an email exist is to send an email, it would be cool if modoboa can provide this. Something like: ``` GET /api/accounts/<email>/exists {exists: (true|false}} ``` Thought ?
Author
Owner

@tonioo commented on GitHub (Mar 2, 2016):

Yes it could be useful.

<!-- gh-comment-id:191234631 --> @tonioo commented on GitHub (Mar 2, 2016): Yes it could be useful.
Author
Owner

@tonioo commented on GitHub (Mar 4, 2016):

@gawel What do you think about:

GET /api/accounts/exists/?email=<email>
{exists: (true|false}}

I'm not a DRF expert but looking at the documentation, it looks simpler to implement. (see http://www.django-rest-framework.org/api-guide/viewsets/#marking-extra-actions-for-routing)

<!-- gh-comment-id:192335316 --> @tonioo commented on GitHub (Mar 4, 2016): @gawel What do you think about: ``` GET /api/accounts/exists/?email=<email> {exists: (true|false}} ``` I'm not a DRF expert but looking at the documentation, it looks simpler to implement. (see http://www.django-rest-framework.org/api-guide/viewsets/#marking-extra-actions-for-routing)
Author
Owner

@gawel commented on GitHub (Mar 7, 2016):

Yep, that work. I'm not a DRF expert too :)

<!-- gh-comment-id:193199379 --> @gawel commented on GitHub (Mar 7, 2016): Yep, that work. I'm not a DRF expert too :)
Author
Owner

@hadifarnoud commented on GitHub (Mar 26, 2016):

cool. where can I find API docs? could not find it on your site.

<!-- gh-comment-id:201754380 --> @hadifarnoud commented on GitHub (Mar 26, 2016): cool. where can I find API docs? could not find it on your site.
Author
Owner

@tonioo commented on GitHub (Mar 26, 2016):

The API is not released yet. I'll add the documentation soon.

<!-- gh-comment-id:201759643 --> @tonioo commented on GitHub (Mar 26, 2016): The API is not released yet. I'll add the documentation soon.
Author
Owner

@hadifarnoud commented on GitHub (Apr 24, 2016):

eagerly waiting for API docs. btw, I could help out polishing the docs once I figure out how it works myself.

<!-- gh-comment-id:213959475 --> @hadifarnoud commented on GitHub (Apr 24, 2016): eagerly waiting for API docs. btw, I could help out polishing the docs once I figure out how it works myself.
Author
Owner

@mangliobertoluci commented on GitHub (Jun 23, 2022):

Hello Tonioo. Is it possible to edit this API to generate "email packages" with storage limits and "email sending limits" and permissions?

<!-- gh-comment-id:1164990511 --> @mangliobertoluci commented on GitHub (Jun 23, 2022): Hello Tonioo. Is it possible to edit this API to generate "email packages" with storage limits and "email sending limits" and permissions?
Author
Owner

@tonioo commented on GitHub (Jun 24, 2022):

@mangliobertoluci No, you can't do that with the API.

<!-- gh-comment-id:1165529908 --> @tonioo commented on GitHub (Jun 24, 2022): @mangliobertoluci No, you can't do that with the API.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#742
No description provided.