Topics
Create a Topic
This endpoint creates a new topic in QStash.
curl -X PUT https://qstash.upstash.io/v1/topics/:topicId\
-H "Authorization: Bearer <token>" \
-d '{ "name": "test" }'
{
"topicId": "tpc_7EfEryZiheEKzpMuvjYdhhhbNNJA",
"name": "test",
"endpoints": [
{
"endpointId": "ept_6j7BNZus3ZyPy6P7QtLUMCC3Rq7h",
"url": "https://www.upstash.com",
"topicId": "tpc_7EfEryZiheEKzpMuvjYdhhhbNNJA"
}
]
}
Request
name
string
requiredThe name of the topic Must only contain alphanumeric characters, underscores,
dashes and periods. Regex: ^[a-zA-Z0-9-_.]+$
Response
endpoints
Array<Endpoint>
requiredname
string
requiredA user given name must only contain alphanumeric, hyphen, underscore and periods.
topicId
string
requiredId for this topic
Was this page helpful?
curl -X PUT https://qstash.upstash.io/v1/topics/:topicId\
-H "Authorization: Bearer <token>" \
-d '{ "name": "test" }'
{
"topicId": "tpc_7EfEryZiheEKzpMuvjYdhhhbNNJA",
"name": "test",
"endpoints": [
{
"endpointId": "ept_6j7BNZus3ZyPy6P7QtLUMCC3Rq7h",
"url": "https://www.upstash.com",
"topicId": "tpc_7EfEryZiheEKzpMuvjYdhhhbNNJA"
}
]
}