Download OpenAPI specification:
[- {
- "id": "string",
- "username": "string",
- "protocol": "string",
- "display_name": "string",
- "profile": "string",
- "icon": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "identifiers": {
- "activitypub": {
- "local_username": "string",
- "host": "string",
- "public_key": "string"
}, - "nostr": {
- "npub": "string"
}
}, - "post_count": 0,
- "follow_count": 0,
- "follower_count": 0
}
]
{- "id": "string",
- "username": "string",
- "protocol": "string",
- "display_name": "string",
- "profile": "string",
- "icon": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "identifiers": {
- "activitypub": {
- "local_username": "string",
- "host": "string",
- "public_key": "string"
}, - "nostr": {
- "npub": "string"
}
}, - "post_count": 0,
- "follow_count": 0,
- "follower_count": 0
}
{- "id": "string",
- "username": "string",
- "protocol": "string",
- "display_name": "string",
- "profile": "string",
- "icon": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "identifiers": {
- "activitypub": {
- "local_username": "string",
- "host": "string",
- "public_key": "string"
}, - "nostr": {
- "npub": "string"
}
}, - "post_count": 0,
- "follow_count": 0,
- "follower_count": 0
}
Get Latest Posts of User
id required | string |
offset | integer |
[- {
- "id": "string",
- "user": {
- "username": "string",
- "protocol": "string",
- "display_name": "string",
- "icon": "string"
}, - "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
Lookup (Remote/Local) User
username required | string Example: @user,@user@example.com,npub123abc |
{- "id": "string",
- "username": "string",
- "protocol": "string",
- "display_name": "string",
- "profile": "string",
- "icon": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "identifiers": {
- "activitypub": {
- "local_username": "string",
- "host": "string",
- "public_key": "string"
}, - "nostr": {
- "npub": "string"
}
}, - "post_count": 0,
- "follow_count": 0,
- "follower_count": 0
}
{- "id": "string",
- "user": {
- "username": "string",
- "protocol": "string",
- "display_name": "string",
- "icon": "string"
}, - "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
[- {
- "id": "string",
- "user": {
- "username": "string",
- "protocol": "string",
- "display_name": "string",
- "icon": "string"
}, - "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
Create Article
title required | string |
content required | string |
{- "title": "string",
- "content": "string"
}
{- "id": "string",
- "user": {
- "username": "string",
- "protocol": "string",
- "display_name": "string",
- "icon": "string"
}, - "title": "string",
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
{- "id": "string",
- "user": {
- "username": "string",
- "protocol": "string",
- "display_name": "string",
- "icon": "string"
}, - "title": "string",
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
[- {
- "id": "string",
- "user": {
- "username": "string",
- "protocol": "string",
- "display_name": "string",
- "icon": "string"
}, - "article_id": "string",
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
Register a New Nostr Relay
id required | string |
url required | string |
is_enable required | boolean |
created_at required | string <date-time> |
updated_at required | string <date-time> |
{- "id": "string",
- "url": "string",
- "is_enable": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
{ }
{- "openRegistrations": false,
- "protocols": [
- "activitypub"
], - "software": {
- "name": "sechack365",
- "version": "0.1.0"
}, - "usage": {
- "users": {
- "total": 0
}
}, - "services": {
- "inbound": { },
- "outbound": { }
}, - "metadata": { },
- "version": "2.0"
}
{- "links": [
- {
}
]
}
WebFinger
resource required | string Example: resource=acct:user@example.com |
{- "subject": "acct:mock@localhost",
- "links": [
- {
- "rel": "self",
- "type": "application/activity+json",
- "href": "https:/localhost/api/v1/users/1"
}
]
}