Is there an API call to get server metadata? #1139
-
Is there an API endpoint that returns info about server constraints like maximum image size, text length, etc.? I've looked through the atproto API docs and if it's there I must have missed it. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
AFAIK nope, there's a health endpoint but there's no endpoint for getting the metadata, although it sounds useful |
Beta Was this translation helpful? Give feedback.
-
There is an endpoint Also worth noting that the lexicons for an application might define max text sizes and max image sizes on each field of a record. You can see a good example of that here for user profiles: atproto/lexicons/app/bsky/actor/profile.json Lines 16 to 25 in bfd0670 |
Beta Was this translation helpful? Give feedback.
-
Yes, I've seen those maxSize properties in the lexicons, but I was hoping there might be an endpoint a client could use on an automatic basis. I know there's only one server now, but couldn't these values change on other servers? |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
The
app.bsky.*.*
lexicons are independent of any PDS, instead tied to an application (Bluesky Social). In order to maintain high compatibility throughout the ecosystem, application lexicons should not vary by server (barring that different participants in the network may have more or less up-to-date versions of a given schema). For example, the purpose of the app.bsky lexicon is to establish lexicons for microblogging. If some servers decide that posts can be 10000 characters long and others decide that posts can only be 300 characters long, then the application begins to have an ambiguous purpose and clients would have trouble working for folks on many different servers. I could still im…