Set of services for extracting metadata from emails and taking an action on it.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
IamTheFij 6dc99be7e4 Run linters 1 year ago
indexer Run linters 1 month ago
.dockerignore Update dockerignore for tokendb 2 years ago
.gitignore Add initial indexer apis 3 years ago
Dockerfile Update indexer to write sqlite db to persisted volume 3 years ago
Makefile Add pre-commit with black 1 month ago Add indexer readme 3 years ago
docker-compose.yml Fix token db path 2 years ago
requirements-dev.txt Add initial indexer apis 3 years ago
requirements.txt Run linters 1 month ago


Simple service to act as data layer for Email Assitant


Path: / Returns: OK


Path: /token


Accepts JSON representation of a EmailToken


Field Type Example
"subject" String "Your shipping info"
"token" String "123456"
"type" String "SHIPPING"
"metadata" Object (optional) {"carrier": "UPS"}
"disabled" Boolean (optional) false


Field Type Example
"success" Boolean true
"token" Token Object {"id": 1, ... }


Path: /token Returns all Token Objects


Parameter Description Example
"filter_type" String token type to filter by SHIPPING


Field Type Example
"tokens" List of Token Objects [{"id": 1, ... }, ...]

Path: /token/<int:token_id> Returns Token Object with that ID