NoRamp Docs
Search
K

Authentication

LIVE API BASE URL
TESTNET API BASE URL
SUPPORTED AUTHENTICATIONS
  • Bearer: Using authorization header Authorization: Bearer API_KEY
  • Basic: Using authorization header Authorization: Basic API_KEY
  • API Header: Using header x-api-key: API_KEY
GET API KEY
Go to the API Key section to locate, regenerate and copy your API Key.
AUTHENTICATION TEST
GET /auth
cURL
Node
Python
1 curl-X GET https://api.noramp.io/auth \
2 -u API_KEY: \
3 -H 'Content-Type: application/json'
--------------------------------------------------------
JSON Response:
1 {
2 "data": {
3 "is_new": false,
4 "user": {
5 "id": "user_201MpQuP0nuylBtg4g7sup",
6 "username": "username",
7 "email": "[email protected]",
8 "first_name": "First name",
9 "last_name": "Last Name",
10 "role": "user",
11 "created_at": "2022-07-27T00:49:19.368Z",
12 "disabled": false
13 }
14 }
15 }
1 const response = await fetch('https://api.noramp.io/auth', {
2 method: "GET",
3 headers: {
4 'content-type': 'application/json',
5 'authorization': 'Bearer {API_KEY}',
6 },
7 })
8
9 console.log('response', await response.json());
--------------------------------------------------------
JSON Response:
1 {
2 "data": {
3 "is_new": false,
4 "user": {
5 "id": "user_201MpQuP0nuylBtg4g7sup",
6 "username": "username",
7 "email": "[email protected]",
8 "first_name": "First name",
9 "last_name": "Last Name",
10 "role": "user",
11 "created_at": "2022-07-27T00:49:19.368Z",
12 "disabled": false
13 }
14 }
15 }
1 import requests
2 import json
3
4 url = "https://api.noramp.io/auth"
5
6 headers = {
7 'Content-Type': 'application/json',
8 'Authorization': 'Bearer {API_KEY}',
9 }
10
11
12 response = requests.request("GET", url, headers=headers, data=payload)
13
14 print(response.text)
--------------------------------------------------------
JSON Response:
1 {
2 "data": {
3 "is_new": false,
4 "user": {
5 "id": "user_201MpQuP0nuylBtg4g7sup",
6 "username": "username",
7 "email": "[email protected]",
8 "first_name": "First name",
9 "last_name": "Last Name",
10 "role": "user",
11 "created_at": "2022-07-27T00:49:19.368Z",
12 "disabled": false
13 }
14 }
15 }