Skip to content

Commit

Permalink
added get identity
Browse files Browse the repository at this point in the history
  • Loading branch information
agustinkassis committed Sep 30, 2023
1 parent 9bd1e08 commit 2326fb1
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions pages/identity-provider/api/identity/get.mdx
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"
}
```

0 comments on commit 2326fb1

Please sign in to comment.