rewards
POST /rewards/code
Creates a new reward code with Solana signature verification
Request
- Base URLhttps://api.audius.co/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"signature": "3fG7xQh2L8vK9pN4mR5sT6uW7vX8yZ1aB2cD3eF4gH5iJ6kL7mN8oP9qR0sT1uV2wX3yZ4aB5cD6eF7gH8iJ9k=",
"mint": "9LzCMqDgTKYz9Drzqnpgee3SGa89up3a247ypMj2xrqM",
"amount": 100
}Response
Created - Reward code successfully created
Example response
{
"code": "aB3d5F",
"mint": "9LzCMqDgTKYz9Drzqnpgee3SGa89up3a247ypMj2xrqM",
"reward_address": "9XeZbswbSSUU4AHVArQbTQjAEjAPhVweGU5cogBVkvh4",
"amount": 100
}Changes
No recorded changes to this operation across all 11 revisions of this API.