Merran documentation API & integrations
Check an API key
GET
/api/auth/api-keys/current
const url = 'http://localhost:3000/api/auth/api-keys/current';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/auth/api-keys/current \ --header 'Authorization: Bearer <token>'The key this request was sent with: its household and what it may do. A quick way for a tool like Home Assistant to check its key works. Any API key that works will do: it needs no permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The key works.
Media typeapplication/json
object
id
required
string
name
required
string
start
required
string
household
required
object
id
required
string
name
required
string
permissions
required
object
household
string
recipes
string
plan
string
list
string
pantry
string
imports
string
assistant
string
expiresAt
required
string | null format: date-time
lastUsedAt
required
string | null format: date-time
createdAt
required
string format: date-time
Example
{ "id": "0199e8b0-5a10-7a01-8b00-000000000009", "name": "Home Assistant", "start": "mrn_3fK9aQ", "household": { "id": "0199e8b0-5a10-7a01-8b00-000000000003", "name": "The Riveras" }, "permissions": { "recipes": "read", "list": "write" }, "expiresAt": "2027-01-13T18:30:00.000Z", "lastUsedAt": "2026-10-15T18:30:00.000Z", "createdAt": "2026-10-01T17:30:00.000Z"}No API key was sent.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}The key doesn’t work.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}© 2026 Kyle Johnson. Documentation: CC BY 4.0. Merran: AGPL-3.0-or-later.