generated from shuding/nextra-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bd1e08
commit 2326fb1
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Get Identity | ||
|
||
Gets identity by name using NIP-05 standard | ||
|
||
--- | ||
|
||
## Request | ||
|
||
> **GET** /.well-known/nostr.json?name=**NAME** | ||
### Parameters | ||
|
||
name | ||
: `String` | ||
The NAME to be matched | ||
|
||
--- | ||
|
||
## Response | ||
|
||
### 200 | ||
|
||
Valid Response | ||
|
||
```json | ||
{ | ||
"NAME": "PUBLIC KEY" // returns the public key associated with the name provided | ||
} | ||
``` | ||
|
||
### 404 | ||
|
||
Name not found | ||
|
||
```json | ||
{ | ||
"success": false, | ||
"reason": "Not found" | ||
} | ||
``` | ||
|
||
### 405 | ||
|
||
Method Not Allowed | ||
|
||
```json | ||
{ | ||
"success": false, | ||
"reason": "Must use GET method" | ||
} | ||
``` |