[GH-ISSUE #356] Available API endpoints #306

Closed
opened 2026-02-25 21:34:41 +03:00 by kerem · 2 comments
Owner

Originally created by @TetrisIQ on GitHub (Oct 16, 2019).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/356

Originally assigned to: @jasonmunro on GitHub.

💬 What API Endpoints are available

Currently, I try to use the API to get the number of all unread E-Mails in Python. The first step in the authorization works (getting the hm_id and hm_session) but the second step is not working at all, I'll get the login page back. This is the python code.

payload = {
    "hm_id": hm_id,
    "hm_session": hm_session,
    "api_login_key": hm_api_key,
}
r = requests.post(url + "?page=process_api_login/", data=payload, headers=HEADER)

So I'm not sure if the 'page=process_api_login' endpoint is right here. And I'm not sure what other endpoints exists, (for example to get all unread mails or all mails). Is the API designed for that kind of used.

Thanks for help

Regards TetrisIQ

Originally created by @TetrisIQ on GitHub (Oct 16, 2019). Original GitHub issue: https://github.com/cypht-org/cypht/issues/356 Originally assigned to: @jasonmunro on GitHub. # 💬 What API Endpoints are available Currently, I try to use the API to get the number of all unread E-Mails in Python. The first step in the authorization works (getting the hm_id and hm_session) but the second step is not working at all, I'll get the login page back. This is the python code. ````python payload = { "hm_id": hm_id, "hm_session": hm_session, "api_login_key": hm_api_key, } r = requests.post(url + "?page=process_api_login/", data=payload, headers=HEADER) ```` So I'm not sure if the 'page=process_api_login' endpoint is right here. And I'm not sure what other endpoints exists, (for example to get all unread mails or all mails). Is the API designed for that kind of used. Thanks for help Regards TetrisIQ
kerem 2026-02-25 21:34:41 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@jasonmunro commented on GitHub (Nov 12, 2019):

@TetrisIQ sorry for the late response. The api login process is only intended to supply a way to automatically be logged into Cypht - not as an API to get things like a list of unread E-mail. You may want to look at something like JMAP for a modern E-mail API.

<!-- gh-comment-id:552739814 --> @jasonmunro commented on GitHub (Nov 12, 2019): @TetrisIQ sorry for the late response. The api login process is only intended to supply a way to automatically be logged into Cypht - not as an API to get things like a list of unread E-mail. You may want to look at something like JMAP for a modern E-mail API.
Author
Owner

@TetrisIQ commented on GitHub (Nov 14, 2019):

Thanks for your response and for the hint to JMAP. I will take a look on it.

<!-- gh-comment-id:554012243 --> @TetrisIQ commented on GitHub (Nov 14, 2019): Thanks for your response and for the hint to JMAP. I will take a look on it.
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/cypht#306
No description provided.