Skip to main content
POST
/
api
/
accounts
cURL
curl --request POST \
  --url https://recoup-api.vercel.app/api/accounts \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "email": "jsmith@example.com",
  "wallet": "<string>"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "email": "jsmith@example.com",
    "wallet": "<string>",
    "image": "<string>",
    "instruction": "<string>",
    "organization": "<string>",
    "job_title": "<string>",
    "role_type": "<string>",
    "company_name": "<string>",
    "knowledges": [
      "<string>"
    ]
  }
}

Authorizations

x-api-key
string
header
required

Your Recoup API key. Learn more.

Body

application/json

Account credentials to create or lookup

At least one of email or wallet should be provided to identify or create an account.

email
string<email>

Email address to associate with the account. If an account with this email exists, it will be returned.

wallet
string

Wallet address to associate with the account. If an account with this wallet exists, it will be returned.

Response

Account created or retrieved successfully

data
object
required

The account data