POST
/
v1
/
recommendations
/
pledge-crypto
curl --request POST \
  --url https://api.endaoment.org/v1/recommendations/pledge-crypto \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "donorName": "Anonymous Donor",
  "donorIdentity": {
    "firstName": "John",
    "lastName": "Doe",
    "email": "john.doe@example.com",
    "address": {
      "line1": "123 Main Street",
      "line2": "Suite 100",
      "city": "San Francisco",
      "state": "CA",
      "zip": "94105",
      "country": "USA"
    }
  },
  "updateIdentity": true,
  "shareMyEmail": false,
  "collaboratingFundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tokenId": 1,
  "inputAmount": "1000000000000000000",
  "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "id": "123e4567-e89b-12d3-a456-426614174000"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json
Crypto pledge recommendation successfully created

The response is of type object.