Delete a Token

If you are yet to deploy a token, you can delete it by sending a DELETE request to the /token endpoint.

Delete a Token.

DELETE https://api.playfix.io/token/<token_name>

Path Parameters

Name
Type
Description

token_name

String

An automatically generated token name. This will start with a prefix of "tokens/" followed by a ULID.

Example: tokens/01gfrf15n9hqw3v08sqearsgh9

Headers

Name
Type
Description

Authorization

String

Bearer <your_access_token>

{

}

Example cURL API Call

curl --request DELETE \
  --url https://api.playfix.io/token/<token_name> \
  --header 'Authorization: Bearer <your_access_token>'

Example Python API Call

import requests

r = requests.delete(
    "https://api.playfix.io/token/<token_name>",
    headers = {
        "Authorization": "Bearer <your_access_token>"
        }
    )

print(r.text)

Response

{

}

The response is an empty object, indicating that the project has been deleted successfully.

You can only delete a token if it is yet to be deployed.

Last updated