Skip to content

API: Response of "List Spaces" slightly differs from offical api specification #3134

Description

@Av3m

Have you read a contributing guide?

  • I have read CONTRIBUTING.md
  • I have searched the existing issues and didn't find any that were similar
  • I have considered creating a pull request with fixes instead of a bug report and want to proceed

Current Behavior

  • when I call the API endpoint "/v1/spaces", the response seems to differ slightly from the official API specification, which leads to subsequent errors when I try to deserialise the JSON response.
  • The difference is related to the field "object", which contains the string "anytype.space".
  • This is observed since AnyType Version 0.55.0 and 0.55.1. With earlier Versions I did not observe this behaviour.

Expected Behavior

According to the official Anytype API Specification, the value of the field "object" should be "space" or "chat", not "anytype.space".

Steps To Reproduce

  1. Call the API endpoint "/v1/spaces" and
    curl -L 'http://127.0.0.1:31009/v1/spaces' -H 'Accept: application/json' -H 'Authorization: Bearer <token>' | json_pp

  2. Examine the examine the JSON response regarding field "object":
    "data" : [
    {
    "description" : "",
    "gateway_url" : "http://127.0.0.1:47800",
    "icon" : null,
    "id" : "bafyreifmallpiczbjzqf72fjmhrs2jdfrcfzuwfristjhtytppmwpzzszm.knr2uqh9ss2w",
    "name" : "Test Space",
    "network_id" : "N4BcFX3BGt2ajXspTZ1HwinRzSuQvjWXELMvY1RC8eWEJ13W",
    "object" : "anytype.space"
    },
    <...output shortended...>

    ],
    "pagination" : {
    "has_more" : false,
    "limit" : 100,
    "offset" : 0,
    "total" : 3
    }

Environment

OS-Version: linux x64 6.8.0-110-generic
App-Version: 0.55.1
Versionsnummer: build on 2026-04-29 14:10:53 +0000 UTC at #01df9ca47ab69cf2d4764332cafd8b6a3b382e42
Bibliotheksversion: v0.50.3

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions