Closed (fixed)
Project:
ActivityPub
Version:
1.0.x-dev
Component:
Api
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
9 Feb 2026 at 08:57 UTC
Updated:
23 Apr 2026 at 18:20 UTC
Jump to comment: Most recent
So other clients can be used!
Should live in a separate module. This shouldn't be enabled by default.
Uses rest resources to expose the endpoints.
Docs:
https://www.drupal.org/docs/drupal-apis/restful-web-services-api/restful...
https://docs.joinmastodon.org/client/public/#endpoints
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
nickolajAdds initial Mastodon-compatible API endpoints (`/api/v1/instance`, `/api/v1/accounts/verify_credentials`, `/api/v1/timelines/home`, `/api/v1/timelines/public`, `/api/v1/notifications`) so third-party Mastodon clients can connect to the Drupal ActivityPub instance. This is a starting point; additional endpoints (posting statuses, OAuth2 auth) can be added in follow-up issues.
Comment #5
swentel commentedCool! One thing I've been wondering: is it possible to have discovery regarding the api endpoints? By which I mean: when you would connect with a (mobile) client where you enter the instance url, would we be able to tell 'ok, all endpoints are available at /route/x/whatever'.
The idea is that, for some reason, I'd rather would have a base path, e.g. example.com/activitypub/api instead of just example.com/api.
Not sure if that's an option, but would be nice I think.
Comment #6
swentel commentedComment #7
swentel commentedNote: Should live in a separate module. This shouldn't be enabled by default. Updated the IS for that. Not sure if there's an existing library out there that would help us in some way, but that's something I haven't investigated yet.
Comment #8
swentel commentedComment #9
aleixI second the separate module, I have started to make mastodon apps happy with us too, and found that it will make the module too much opinionated. I end up seeing that there must be a place for simplistic c2s compliant apps too (namely andstatus by now). I am on the way to provide this if I finally get funding.
Comment #10
swentel commentedComment #11
swentel commentedWorking on this now
Comment #12
swentel commentedComment #13
swentel commentedComment #14
swentel commentedComment #15
swentel commentedComment #16
swentel commentedComment #18
swentel commentedVersion 1 is committed
Comment #20
swentel commented