Method: projects.topics.create

Creates the given topic with the given name. See the resource name rules.

HTTP request


Path parameters



Name of the topic. Format is projects/{project}/topics/{topic}.

Request body

The request body must be empty.

Response body

If successful, the response body contains a newly created instance of Topic.

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.

Try it!

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Pub/Sub