API reference · version 1.0.0Fusio · public API
Loading the address list…
Addresses in this part
A short list of addresses. Click an address and we show it to you above.
- get/v1/emails/gridList emails in a tableReturns one page of emails with the filters and the sort you ask for.
- get/v1/emails/optionsList emails for a pickerReturns short items with the number and the name of each email.
- get/v1/emails/board/summaryCount emails in each stateReturns how many emails there are in each column of the board.
- get/v1/emails/board/{status}List the emails of one board columnReturns the emails in one state, page by page. Send nextCursor back as cursor for the next page.
- patch/v1/emails/bulk-stateMove many emails to one stateMoves each email like the single state change does. It is all or nothing: when one email cannot move, because it is locked or the step is not allowed, none moves and you get 422. When one of the emails belongs to a campaign, a key also needs campaigns.write.
- patch/v1/emails/{email}/stateMove an email to another stateAllowed steps: from drafted to approved or rejected, from approved to rejected and from rejected to approved. Other steps are refused with 422. A scheduled or published email is locked and you get 422 too; change it through publications.
- patch/v1/emails/{email}/fieldsChange some fields of an emailChanges only the fields you send. The state does not change. Only a drafted email can change here; otherwise you get 422.
- post/v1/emailsCreate an emailCreates an email and builds its HTML. When you send campaignId, the email joins that campaign. The answer is the new email in the same shape as emails.show.
- get/v1/emails/{email}Show one emailReturns one email with its content, its sender and the rules for who gets it.
- put/v1/emails/{email}Change a whole emailReplaces the email. Send every field, not just the changed ones.
- delete/v1/emails/{email}Delete an emailMoves the email to the trash. When the email belongs to a campaign, a key also needs campaigns.write.