Skip to content

[hma] Design a v2 API #1831

@ThisIsMissEm

Description

@ThisIsMissEm

We've had a few back and forths about this, but the general direction that I'd take for a v2 API would be:

  • Defined using OpenAPI v3
  • Inputs and Outputs should use well-known shapes, leaving variable values to the values of well-known keys (i.e., instead of the hash response being keyed by the hash-type, it's instead an array of objects that have a signal_type and hash keys).
  • The output from the hashing API should be pipe-able to the matching API — i.e., you shouldn't need to translate the response into a new shape for the request to the matching API.

Initially I'd probably just suggest we start with hashing and matching APIs, but then later expand to this other APIs such as those for managing content banks and exchanges.

There's probably more things related to this that we've discussed and I'm just forgetting those tonight, so feel free to add other things if you remember them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    hmaItems related to the hasher-matcher-actioner system

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions