Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Part V ➝ Additional endpoints #6

Open
jimmylee opened this issue Dec 29, 2023 · 0 comments
Open

Part V ➝ Additional endpoints #6

jimmylee opened this issue Dec 29, 2023 · 0 comments
Assignees
Labels
Documentation Documentation for developers at Internet Development Studio Internal Articles meant for the team.

Comments

@jimmylee
Copy link
Contributor

jimmylee commented Dec 29, 2023

Regenerating API Key

CURL

curl -X POST "https://api.internet.dev/api/users/regenerate-key" \
     -H "Content-Type: application/json" \
     -d '{"email": "sunflower@internet.dev", "password": "lol"}'

Response

{
  "user": {
    "id": "b8ddc670-010d-4db5-b57b-2f610f785d5e",
    "email": "sunflower@internet.dev",
    "key": "INT-eeb1715d-5343-47d6-adfd-DEV-1546348f-032f-4dea-b388",
    "level": "1",
    "data": {},
    "created_at": "2023-12-28T11:28:11.548Z",
    "updated_at": "2023-12-29T03:55:06.605Z",
    "deleted_at": null
  },
  "updated": true
}

Get all the data uploaded for an organization

CURL

curl -X GET "https://api.internet.dev/api/data" \
     -H "X-API-KEY: API_KEY"

Response

{
  "data": [
    {
      "id": "48d3ecc6-24e2-41cc-a02b-0e501692e007",
      "user_id": "9d764479-12a3-439a-99b0-258459455054",
      "organization_id": "73fd0539-a480-4ad9-bb80-ee0fb021f3a8",
      "data": {
        "src": "https://intdev-global.s3.us-west-2.amazonaws.com/public/internet-dev/d6fbbf06-dc03-40be-bb3c-e33eff8bbdd2.png",
        "name": "293144301-502ab1bc-0de4-414d-8b9c-f87225d48ddc.png",
        "type": "image/png",
        "newName": "d6fbbf06-dc03-40be-bb3c-e33eff8bbdd2.png",
        "extension": "png"
      },
      "created_at": "2023-12-28T11:12:53.343Z",
      "updated_at": "2023-12-28T11:12:53.343Z",
      "deleted_at": null
    }
  ]
}

Sync your web3 wallet signature

CURL

curl -X POST "http://api.internet.dev/api/users/sync-wallet" \
     -H "Content-Type: application/json" \
     -H "X-API-KEY: INT-XXXX-XXXX-XXXX-XXXX-DEV-XXXX-XXXX-XXXX-XXXX" \
     -d '{"signature": "SOME_VALUE" }'

Desync your web3 wallet signature

CURL

curl -X POST "http://api.internet.dev/api/users/desync-wallet" \
     -H "Content-Type: application/json" \
     -H "X-API-KEY: INT-XXXX-XXXX-XXXX-XXXX-DEV-XXXX-XXXX-XXXX-XXXX"
@jimmylee jimmylee added Documentation Documentation for developers at Internet Development Studio Internal Articles meant for the team. labels Dec 29, 2023
@jimmylee jimmylee changed the title Part V: Additional endpoints Part V ➝ Additional endpoints Dec 29, 2023
@jimmylee jimmylee self-assigned this Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Documentation for developers at Internet Development Studio Internal Articles meant for the team.
Projects
None yet
Development

No branches or pull requests

1 participant