Skip to content

Vibe Coding Quickstart

You are setting up a new project that integrates with the Ethos Network API.

Install Deno: curl -fsSL https://deno.land/install.sh | sh

Create deno.json with tasks for dev, check, and any cron jobs needed.

Deno documentation: https://docs.deno.com/

Create:

src/
ethos-client.ts # API wrapper functions
main.ts # Entry point
.env.example # Document required env vars
deno.json

Base URL: https://api.ethos.network/api/v2

Required header: X-Ethos-Client (identifies your app)

All requests should include headers: { "X-Ethos-Client": "your-app-name" }

Documentation:

When looking up users, these formats work:

  • address:0x... - Ethereum address
  • service:x.com:<userId> - Twitter by ID
  • service:x.com:username:<handle> - Twitter by username
  • service:discord:<userId> - Discord

To cite a person, link their profile page: https://app.ethos.network/profile/x/<handle> or https://app.ethos.network/profile/<address>

  • GET https://api.ethos.network/api/v2/score/address?address=0x... - Get credibility score
  • GET https://api.ethos.network/api/v2/user/by/address/{address} - Get user profile

See full endpoint list: https://developers.ethos.network

Most read endpoints are public (no auth). For authenticated user actions and login integration: https://developers.ethos.network/api-documentation/log-in-with-ethos

Study these repos for patterns: