# `AshAuthzed.Adapters.SpiceDBHttp`
[🔗](https://github.com/boxxxie/ash_authzed/blob/v0.2.0/lib/ash_authzed/adapters/spicedb_http.ex#L2)

Adapter for communicating with an external SpiceDB / Authzed server over HTTP/JSON via `Req`.

## Options

* `:url` - Base URL of the SpiceDB HTTP server. Defaults to `"http://localhost:8443"`.
* `:token` - Preshared key / Bearer token for SpiceDB authentication. Defaults to `"secret"`.
* `:req_options` - Additional options forwarded directly to `Req.post/2` (such as `:plug` for testing).

# `parse_tuple_to_json`

```elixir
@spec parse_tuple_to_json(String.t()) :: {:ok, map()} | {:error, AshAuthzed.Error.t()}
```

Converts a Zanzibar relationship tuple string into a SpiceDB JSON relationship map.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
