curl --request POST \
--url https://api.rain.xyz/v1/issuing/applications/user \
--header 'Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"firstName": "John",
"lastName": "Doe",
"birthDate": "2000-01-01",
"nationalId": "123456789",
"countryOfIssue": "US",
"email": "john.doe@example.com",
"phoneCountryCode": "1",
"phoneNumber": "5555555555",
"address": {
"line1": "123 Main St",
"city": "New York",
"region": "NY",
"postalCode": "10001",
"countryCode": "US"
},
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
"ipAddress": "192.168.1.1",
"occupation": "Software Developers",
"annualSalary": "100000",
"accountPurpose": "Personal spending",
"expectedMonthlyVolume": "5000"
}'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"isActive": true,
"applicationStatus": "approved",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalId": "<string>",
"sourceKey": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"region": "<string>",
"postalCode": "<string>",
"countryCode": "<string>",
"line2": "<string>",
"country": "<string>"
},
"phoneCountryCode": "1",
"phoneNumber": "5555555555",
"walletAddress": "<string>",
"solanaAddress": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"applicationExternalVerificationLink": {
"url": "<string>",
"params": {
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"applicationCompletionLink": {
"url": "<string>",
"params": {
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"applicationReason": "<string>"
}Create a consumer application for a user
Creates a consumer application for a user. Can be used directly without calling the initiate endpoint first. Identity verification is handled through Sumsub share token, Persona share token, or by providing personal information through the API. The application goes through KYC review once created.
curl --request POST \
--url https://api.rain.xyz/v1/issuing/applications/user \
--header 'Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"firstName": "John",
"lastName": "Doe",
"birthDate": "2000-01-01",
"nationalId": "123456789",
"countryOfIssue": "US",
"email": "john.doe@example.com",
"phoneCountryCode": "1",
"phoneNumber": "5555555555",
"address": {
"line1": "123 Main St",
"city": "New York",
"region": "NY",
"postalCode": "10001",
"countryCode": "US"
},
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
"ipAddress": "192.168.1.1",
"occupation": "Software Developers",
"annualSalary": "100000",
"accountPurpose": "Personal spending",
"expectedMonthlyVolume": "5000"
}'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"isActive": true,
"applicationStatus": "approved",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalId": "<string>",
"sourceKey": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"region": "<string>",
"postalCode": "<string>",
"countryCode": "<string>",
"line2": "<string>",
"country": "<string>"
},
"phoneCountryCode": "1",
"phoneNumber": "5555555555",
"walletAddress": "<string>",
"solanaAddress": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"applicationExternalVerificationLink": {
"url": "<string>",
"params": {
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"applicationCompletionLink": {
"url": "<string>",
"params": {
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"applicationReason": "<string>"
}Authorizations
Body
Application information for this user
- Using API
- Using Sumsub Share Token
- Using Persona Share Token
The user looking to create an account - they must have a wallet, and their wallet will be an owner on their Rain smart contract
The person's first name
50The person's last name
50The person's birth date
"2000-01-01"
The person's national id, 9-digit SSN if country of issue is US
The person's country of issue of their national id
2The person's email address
The person's address
Show child attributes
Show child attributes
This user's IP address
The user's occupation
The user's annual salary
The purpose of the user's account
The amount of money the user expects to spend each month
The initiated application's Rain ID, if an application was previously initiated for this user
The user's phone country code
1 - 3^[0-9]+$"1"
The user's phone number
1 - 15^[0-9]+$"5555555555"
This user's EVM address; either walletAddress or solanaAddress or stellarAddress is required if using a Rain-managed solution, but not required otherwise
^0x[0-9a-fA-F]{40}$This user's Solana address; either walletAddress or solanaAddress or stellarAddress is required if using a Rain-managed solution, but not required otherwise
^[1-9A-HJ-NP-Za-km-z]{32,44}$This user's Stellar address; either walletAddress or solanaAddress or stellarAddress is required if using a Rain-managed solution, but not required otherwise
^[GC][A-Z2-7]{55}$|^M[A-Z2-7]{68}$If using external collateral contracts, the chain id of the user's external collateral contract; not required if using Rain's collateral contracts
If using external collateral contracts, the address of the user's external collateral contract; not required if using Rain's collateral contracts
^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$Unique identifier for where this user is coming from
1 - 24An optional tenant-defined identifier for this user. Must be unique within the tenant.
1 - 255Optional. Whether the user has accepted the terms of service. If omitted, this defaults to true server-side.
true Whether or not to use existing documents for additional verification
Response
Successful operation
The user's unique identifier
The user's first name
50The user's last name
50The user's email address
Whether the user is active
approved, pending, needsInformation, needsVerification, manualReview, denied, locked, canceled The id of the company that the user belongs to, if any
An optional tenant-defined identifier for this user. Must be unique within the tenant.
1 - 255The source key associated with the user's team
1 - 24The user's physical address
Show child attributes
Show child attributes
The user's phone country code
1 - 3^[0-9]+$"1"
The user's phone number
1 - 15^[0-9]+$"5555555555"
The user's EVM wallet address
The user's Solana wallet address
^[1-9A-HJ-NP-Za-km-z]{32,44}$When the user was created
When the user was last updated
The link to the external verification page for the application
Show child attributes
Show child attributes
The link to the completion page for the application
Show child attributes
Show child attributes
The reason for the application status