games.namespaces.createGameNamespaceTokenDevelopment


Description

Creates a development token for the given namespace.


Code Examples

Request

POST
https://api.rivet.gg/cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development
# Write the request body to body.json before running
curl -X POST -d '@body.json' 'https://api.rivet.gg/cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development'

Request Parameters

game_id

Path parameter, required

namespace_id

Path parameter, required


Request Body

hostname

string (required)

The hostname used for the token.

ports

map<string, object>

ports.<port>.port

integer

ports.<port>.port_range

object

Range of ports that can be connected to. Note that the port range values returned by /find

  • cloud.version.matchmaker.PortProtocol
  • cloud.version.matchmaker.ProxyKind

ports.<port>.port_range.max

integer (required)

Unsigned 32 bit integer.

ports.<port>.port_range.min

integer (required)

Unsigned 32 bit integer.

ports.<port>.protocol

string (required)

Signifies the protocol of the port. Note that when proxying through GameGuard (via ProxyKind), the port number returned by /find, /join, and /create will not be the same as the port number configured in the config:

  • With HTTP, the port will always be 80. The hostname of the port correctly routes the incoming connection to the correct port being used by the game server.
  • With HTTPS, the port will always be 443. The hostname of the port correctly routes the incoming connection to the correct port being used by the game server.
  • Using TCP/UDP, the port will be a random number between 26000 and 31999. This gets automatically routed to the correct port being used by the game server.

Response Body

token

string (required)

A JSON Web Token. Slightly modified to include a description prefix and use Protobufs of JSON.


Rivet

Open-source multiplayer infrastructure. Easy, flexible, and affordable.

This website is not sponsored by or affiliated with Unity Technologies or its affiliates. Unity Trademark(s) are trademark(s) or registered trademark(s) of Unity Technologies or its affiliates in the U.S. and elsewhere. | This website is not sponsored by, affiliated with, or endorsed by Epic Games, Inc. or its affiliates. 'Unreal Engine' is a trademark or registered trademark of Epic Games, Inc. in the U.S. and elsewhere. | The HTML5 Logo by the World Wide Web Consortium (W3C), used under a Creative Commons Attribution 3.0 License. Source | The Godot Engine Logo by the Andrea Calabró, used under a Creative Commons Attribution 4.0 International License. Source | Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries. Docker, Inc. and other parties may also have trademark rights in other terms used herein.

© 2024 Rivet Gaming, Inc. All rights reserved.