Skip to content

REST API input channel #2

@tttp

Description

@tttp

We are going to provide at least two channels for the supporters (well, the tools used by the NGOs that run the campaigns) to send a message to a politician:

  1. REST API: this is assuming there is another tool allowing the supporters to take action that will call this API

  2. email: detailled on issue Stalwart WEBHOOK #3

for the API, what schema should we go with?

OpenAPI or GraphQL?

for proca we are using graphql, I don't have a strong preference either way, do you?

mutation:

"email add"

  • messageid* any uuid, the provider needs to give a unique id, email is fine for that
  • sender name*
  • sender email* (where we need to send the reply from the politician)
  • subject*
  • message*
  • timestamp*
  • campaign_name (?) to be discussed, if the campaign provider knows it, they can provide it, it will help quite a bit the classification ;) assume empty
    for MVP, no extra options, eg no image, voice...

returns a status OK/try later/error
--> to be fleshed out

Authentication:
token ?

oauth for after MVP

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions