Lettermint.Routes (Lettermint v2.1.0)

Copy Markdown View Source

Routes of a project. Needs :team_token.

Every function takes the options timeout: (milliseconds) last.

Summary

Functions

Creates a route in a project.

Streams every route of a project, following next_cursor. Raises the error of a failed page request.

Lists the routes of a project, one page at a time. query: Lettermint.Types.ListRoutesQuery.t/0.

Checks the inbound domain of a route.

Types

result(value)

@type result(value) :: {:ok, value} | {:error, Lettermint.Error.t()}

Functions

create(client, project_id, body, options \\ [])

Creates a route in a project.

delete(client, route_id, options \\ [])

Deletes a route.

iterate(client, project_id, query \\ %{}, options \\ [])

Streams every route of a project, following next_cursor. Raises the error of a failed page request.

list(client, project_id, query \\ %{}, options \\ [])

Lists the routes of a project, one page at a time. query: Lettermint.Types.ListRoutesQuery.t/0.

retrieve(client, route_id, query \\ %{}, options \\ [])

Retrieves a route.

update(client, route_id, body, options \\ [])

Updates a route.

verify_inbound_domain(client, route_id, options \\ [])

Checks the inbound domain of a route.