Zekra Account API

The Account API from Zekra, for account.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 12

GET /api/me/account/export Your latest data export #
POST /api/me/account/export Request a copy of your data; the link arrives by email #
GET /api/me/account/export/download Download your data export (once) #
GET /api/me/account/notifications Your notification preferences #
PUT /api/me/account/notifications Change your notification preferences #
GET /api/me/account/profile Your profile #
PUT /api/me/account/profile Update your display name, avatar, timezone and language #
GET /api/me/delete Your account deletion request, if any #
POST /api/me/delete Schedule deletion of your account #
POST /api/me/delete/cancel Cancel a pending account deletion #
POST /api/me/delete/cancel/code Email me a code to cancel a pending deletion #
POST /api/me/delete/code Email me a code to confirm deleting my account #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/zekra-dev:zekra-dev-account-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

zekra-dev-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Zekra Account API
  version: 0.1.0
tags:
- name: Account
paths:
  /api/me/account/export:
    get:
      operationId: account-export-state
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportState'
          description: OK
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Your latest data export
      tags:
      - Account
    post:
      operationId: account-export-request
      parameters:
      - in: header
        name: Authorization
        schema:
          type: string
      - in: header
        name: X-CSRF-Token
        schema:
          type: string
      - in: cookie
        name: togo_csrf
        schema:
          type: string
      - in: header
        name: Accept-Language
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Account-export-requestRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportState'
          description: OK
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Forbidden
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Too Many Requests
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Request a copy of your data; the link arrives by email
      tags:
      - Account
  /api/me/account/export/download:
    get:
      operationId: account-export-download
      parameters:
      - explode: false
        in: query
        name: token
        schema:
          maxLength: 128
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                contentEncoding: base64
                type: string
          description: OK
          headers:
            Cache-Control:
              schema:
                type: string
            Content-Disposition:
              schema:
                type: string
            Content-Type:
              schema:
                type: string
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '410':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Gone
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Download your data export (once)
      tags:
      - Account
  /api/me/account/notifications:
    get:
      operationId: account-notifications-get
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountPrefs'
          description: OK
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Your notification preferences
      tags:
      - Account
    put:
      operationId: account-notifications-update
      parameters:
      - in: header
        name: Authorization
        schema:
          type: string
      - in: header
        name: X-CSRF-Token
        schema:
          type: string
      - in: cookie
        name: togo_csrf
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Account-notifications-updateRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountPrefs'
          description: OK
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Forbidden
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Change your notification preferences
      tags:
      - Account
  /api/me/account/profile:
    get:
      operationId: account-profile-get
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountProfile'
          description: OK
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Your profile
      tags:
      - Account
    put:
      operationId: account-profile-update
      parameters:
      - in: header
        name: Authorization
        schema:
          type: string
      - in: header
        name: X-CSRF-Token
        schema:
          type: string
      - in: cookie
        name: togo_csrf
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Account-profile-updateRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountProfile'
          description: OK
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Forbidden
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Update your display name, avatar, timezone and language
      tags:
      - Account
  /api/me/delete:
    get:
      operationId: account-delete-status
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteState'
          description: OK
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Your account deletion request, if any
      tags:
      - Account
    post:
      description: Re-authenticates with the password or a code from POST /api/me/delete/code (accounts without a password use the code), schedules deletion 14 days out, and signs the account out everywhere immediately.
      operationId: account-delete
      parameters:
      - in: header
        name: X-Forwarded-For
        schema:
          type: string
      - in: header
        name: X-Forwarded-Proto
        schema:
          type: string
      - in: header
        name: X-Request-Id
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Account-deleteRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteOutBody'
          description: OK
          headers:
            Set-Cookie:
              schema:
                type: string
            X-Request-Id:
              schema:
                type: string
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Forbidden
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Conflict
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Too Many Requests
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Schedule deletion of your account
      tags:
      - Account
  /api/me/delete/cancel:
    post:
      description: 'No session needed: deleting signed you out. Proven by the password, or by a code from POST /api/me/delete/cancel/code. The same 403 answers an unknown email, a wrong password and a wrong code.'
      operationId: account-delete-cancel
      parameters:
      - in: header
        name: X-Forwarded-For
        schema:
          type: string
      - in: header
        name: X-Request-Id
        schema:
          type: string
      - in: header
        name: Accept-Language
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Account-delete-cancelRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelOutBody'
          description: OK
          headers:
            X-Request-Id:
              schema:
                type: string
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Forbidden
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Conflict
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Too Many Requests
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Cancel a pending account deletion
      tags:
      - Account
  /api/me/delete/cancel/code:
    post:
      description: No session needed. A code is mailed only when the address has a deletion pending; the answer is the same either way.
      operationId: account-delete-cancel-code
      parameters:
      - in: header
        name: X-Forwarded-For
        schema:
          type: string
      - in: header
        name: X-Request-Id
        schema:
          type: string
      - in: header
        name: Accept-Language
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Account-delete-cancel-codeRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SentOutBody'
          description: OK
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Too Many Requests
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Email me a code to cancel a pending deletion
      tags:
      - Account
  /api/me/delete/code:
    post:
      description: For accounts without a password (Google / Apple / GitHub sign-ins), and as an alternative to the password.
      operationId: account-delete-code
      parameters:
      - in: header
        name: Authorization
        schema:
          type: string
      - in: header
        name: X-CSRF-Token
        schema:
          type: string
      - in: cookie
        name: togo_csrf
        schema:
          type: string
      - in: header
        name: X-Forwarded-For
        schema:
          type: string
      - in: header
        name: X-Request-Id
        schema:
          type: string
      - in: header
        name: Accept-Language
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Account-delete-codeRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SentOutBody'
          description: OK
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Forbidden
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Conflict
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Too Many Requests
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Email me a code to confirm deleting my account
      tags:
      - Account
components:
  schemas:
    AccountProfile:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/AccountProfile.json
          format: uri
          readOnly: true
          type: string
        avatar:
          type: string
        email:
          type: string
        has_password:
          type: boolean
        locale:
          type: string
        name:
          type: string
        timezone:
          type: string
        verified:
          type: boolean
      required:
      - email
      - name
      - avatar
      - timezone
      - locale
      - verified
      - has_password
      type: object
    ExportState:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/ExportState.json
          format: uri
          readOnly: true
          type: string
        downloaded_at:
          format: date-time
          type: string
        expires_at:
          format: date-time
          type: string
        next_allowed_at:
          format: date-time
          type: string
        requested_at:
          format: date-time
          type: string
        status:
          type: string
      required:
      - status
      type: object
    Account-delete-codeRequest:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/Account-delete-codeRequest.json
          format: uri
          readOnly: true
          type: string
        locale:
          enum:
          - en
          - ar
          - es
          - fr
          - de
          - pt-BR
          - it
          - ru
          - tr
          - zh-Hans
          - ja
          - ko
          - hi
          - id
          - nl
          - pl
          - vi
          - uk
          type: string
      type: object
    Account-profile-updateRequest:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/Account-profile-updateRequest.json
          format: uri
          readOnly: true
          type: string
        avatar:
          maxLength: 500
          type: string
        locale:
          maxLength: 16
          type: string
        name:
          maxLength: 80
          type: string
        timezone:
          maxLength: 64
          type: string
      type: object
    SentOutBody:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/SentOutBody.json
          format: uri
          readOnly: true
          type: string
        status:
          examples:
          - sent
          type: string
      required:
      - status
      type: object
    Account-deleteRequest:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/Account-deleteRequest.json
          format: uri
          readOnly: true
          type: string
        code:
          description: The 6-digit code from POST /api/me/delete/code.
          maxLength: 16
          type: string
        password:
          description: 'The account password. Either it or code is required: a session alone cannot delete an account.'
          maxLength: 1024
          type: string
        testimonials:
          description: Accepted for fadymondy parity; Zekra has no testimonials.
          enum:
          - anonymise
          - withdraw
          type: string
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    Account-export-requestRequest:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/Account-export-requestRequest.json
          format: uri
          readOnly: true
          type: string
        locale:
          enum:
          - en
          - ar
          - es
          - fr
          - de
          - pt-BR
          - it
          - ru
          - tr
          - zh-Hans
          - ja
          - ko
          - hi
          - id
          - nl
          - pl
          - vi
          - uk
          type: string
      type: object
    Account-delete-cancel-codeRequest:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/Account-delete-cancel-codeRequest.json
          format: uri
          readOnly: true
          type: string
        email:
          maxLength: 320
          minLength: 3
          type: string
        locale:
          enum:
          - en
          - ar
          - es
          - fr
          - de
          - pt-BR
          - it
          - ru
          - tr
          - zh-Hans
          - ja
          - ko
          - hi
          - id
          - nl
          - pl
          - vi
          - uk
          type: string
      required:
      - email
      type: object
    CancelOutBody:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/CancelOutBody.json
          format: uri
          readOnly: true
          type: string
        status:
          examples:
          - cancelled
          type: string
      required:
      - status
      type: object
    AccountPrefs:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/AccountPrefs.json
          format: uri
          readOnly: true
          type: string
        product_updates:
          description: Email me Zekra product updates.
          type: boolean
        security_alerts:
          description: Email me about sign-ins and security changes.
          type: boolean
        weekly_digest:
          description: Email me a weekly digest of my brains.
          type: boolean
      required:
      - security_alerts
      - product_updates
      - weekly_digest
      type: object
    Account-notifications-updateRequest:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/Account-notifications-updateRequest.json
          format: uri
          readOnly: true
          type: string
        product_updates:
          type: boolean
        security_alerts:
          type: boolean
        weekly_digest:
          type: boolean
      type: object
    ErrorModel:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/ErrorModel.json
          format: uri
          readOnly: true
          type: string
        detail:
          description: A human-readable explanation specific to this occurrence of the problem.
          examples:
          - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
          - array
          - 'null'
        instance:
          description: A URI reference that identifies the specific occurrence of the problem.
          examples:
          - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
          - 400
          format: int64
          type: integer
        title:
          description: A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
          examples:
          - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
          - https://example.com/errors/example
          format: uri
          type: string
      type: object
    DeleteState:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/DeleteState.json
          format: uri
          readOnly: true
          type: string
        cancelled_at:
          format: date-time
          type: string
        requested_at:
          format: date-time
          type: string
        scheduled_for:
          format: date-time
          type: string
        status:
          enum:
          - none
          - scheduled
          - cancelled
          - purged
          type: string
        testimonials:
          type: string
      required:
      - status
      type: object
    Account-delete-cancelRequest:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/Account-delete-cancelRequest.json
          format: uri
          readOnly: true
          type: string
        code:
          maxLength: 16
          type: string
        email:
          maxLength: 320
          minLength: 1
          type: string
        password:
          maxLength: 1024
          type: string
      required:
      - email
      type: object
    DeleteOutBody:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
          - https://example.com/schemas/DeleteOutBody.json
          format: uri
          readOnly: true
          type: string
        scheduled_for:
          format: date-time
          type: string
        status:
          examples:
          - scheduled
          type: string
      required:
      - status
      - scheduled_for
      type: object