injuri.ng
API›Your account›Me & profile updates
your account

Me & profile updates

Read and edit the key owner's account.

GET/api/v1/me

Everything from Get a profile plus email, api_visible and key (the key's scopes and rate limit).

PATCH/api/v1/me/profile

Body (JSON, all optional)

display_namebodystring

Up to 32 characters.

biobodystring

Up to 300 characters and 10 lines.

locationbodystring

Up to 40 characters.

accent_colorbodystring

#rrggbb

text_colorbodystring

#rrggbb

background_colorbodystring

#rrggbb

Example request
curl -X PATCH "https://injuri.ng/api/v1/me/profile" \
  -H "Authorization: Bearer $INJURING_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bio":"now playing: something good","accent_color":"#ff4d6d"}'
Heads up:Needs the profile:write scope. Unknown fields are rejected, so typos fail loudly instead of being ignored.
GET/api/v1/me/analytics

Views, likes and social counts for your profile. Needs analytics:read.

POST/api/v1/me/links
Example request
curl -X POST "https://injuri.ng/api/v1/me/links" \
  -H "Authorization: Bearer $INJURING_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"my music","url":"https://example.com"}'

PATCH /me/links/{id} takes the same fields; DELETE /me/links/{id} removes one. Needs links:write.

POST/api/v1/me/posts
Example request
curl -X POST "https://injuri.ng/api/v1/me/posts" \
  -H "Authorization: Bearer $INJURING_KEY" \
  -H "Content-Type: application/json" \
  -d '{"body":"hello from the API"}'

DELETE /me/posts/{id} removes one of your posts. Needs social:write.

Webhooks

Get a signed POST when something happens: follow.created, comment.created, profile.liked, post.liked, post.replied, post.mentioned, message.received. Each request carries X-Injuring-Event and X-Injuring-Signature (sha256= HMAC of the body with your webhook secret). Webhooks turn off after 10 failed deliveries in a row.

still stuck? try troubleshooting or open a ticket in our discord, we reply fast.