Getting Started
Access API
Analytics API
Collections API
Registrations API
Short URLs API
Activities API
Create an activity
Creates a new customer activity for a product, including an image upload.
POST
/
v1
/
activities
Copy
Ask AI
curl --request POST \
--url https://api.oneofnone.io/v1/activities \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form token_id=2 \
--form 'collection_slug=<string>' \
--form collection_id=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--form 'title=<string>' \
--form 'content=<string>' \
--form 'location=<string>' \
--form owner_email=jsmith@example.com \
--form user_id=3c90c3cc-0d44-4b50-8888-8dd25736052a
Copy
Ask AI
{
"id": 123,
"type": "CREATOR",
"title": "<string>",
"content": "<string>",
"json": {},
"tx_url": "<string>",
"location": "<string>",
"owner_address": "<string>",
"token_id": 123,
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"image": {
"alt": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"file_type": "<string>",
"id": 123,
"poster_url": "<string>",
"size": 123,
"tags": [
"<string>"
],
"thumbnail_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"url": "<string>"
},
"video": {
"alt": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"file_type": "<string>",
"id": 123,
"poster_url": "<string>",
"size": 123,
"tags": [
"<string>"
],
"thumbnail_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"url": "<string>"
},
"gallery": [
{
"alt": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"file_type": "<string>",
"id": 123,
"poster_url": "<string>",
"size": 123,
"tags": [
"<string>"
],
"thumbnail_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"url": "<string>",
"order": 123,
"variants": [
"<string>"
],
"type": "<string>",
"caption": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Authorizations
The API key required for accessing protected routes. It should be included in the request headers as x-api-key
.
Body
multipart/form-data
Response
201
application/json
Activity created successfully.
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://api.oneofnone.io/v1/activities \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form token_id=2 \
--form 'collection_slug=<string>' \
--form collection_id=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--form 'title=<string>' \
--form 'content=<string>' \
--form 'location=<string>' \
--form owner_email=jsmith@example.com \
--form user_id=3c90c3cc-0d44-4b50-8888-8dd25736052a
Copy
Ask AI
{
"id": 123,
"type": "CREATOR",
"title": "<string>",
"content": "<string>",
"json": {},
"tx_url": "<string>",
"location": "<string>",
"owner_address": "<string>",
"token_id": 123,
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"image": {
"alt": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"file_type": "<string>",
"id": 123,
"poster_url": "<string>",
"size": 123,
"tags": [
"<string>"
],
"thumbnail_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"url": "<string>"
},
"video": {
"alt": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"file_type": "<string>",
"id": 123,
"poster_url": "<string>",
"size": 123,
"tags": [
"<string>"
],
"thumbnail_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"url": "<string>"
},
"gallery": [
{
"alt": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"file_type": "<string>",
"id": 123,
"poster_url": "<string>",
"size": 123,
"tags": [
"<string>"
],
"thumbnail_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"url": "<string>",
"order": 123,
"variants": [
"<string>"
],
"type": "<string>",
"caption": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.