POST
/
publishers
/
{publisherId}
/
tokens
curl --request POST \
  --url https://api.comfy.org/publishers/{publisherId}/tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "createdAt": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "token": "<string>"
}'
{
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

publisherId
string
required

Body

application/json
createdAt
string

[Output Only]The date and time the token was created.

description
string

Optional. A more detailed description of the token's intended use.

id
string

Unique identifier for the GitCommit

name
string

Required. The name of the token. Can be a simple description.

token
string

[Output Only]. The personal access token. Only returned during creation.

Response

201
application/json
Token created successfully
token
string

The newly created personal access token.