Rate this page:
GET /1/tokens/{token}
Retrieve information about a token.
string
string
all
or a comma-separated list of dateCreated
, dateExpires
, idMember
, identifier
, permissions
Valid values: identifier
, idMember
, dateCreated
, dateExpires
, permissions
boolean
Determines whether to include webhooks.
false
1 2 3
curl --request GET \
--url 'https://api.trello.com/1/tokens/{token}?key=APIKey&token=APIToken' \
--header 'Accept: application/json'
Success
Content type | Value |
---|---|
application/json |
GET /1/tokens/{token}/member
Retrieve information about a token's owner by token.
string
string
all
or a comma-separated list of valid fields for Member Object.
Valid values: id
1 2 3
curl --request GET \
--url 'https://api.trello.com/1/tokens/{token}/member?key=APIKey&token=APIToken' \
--header 'Accept: application/json'
Success
Content type | Value |
---|---|
application/json |
GET /1/tokens/{token}/webhooks
Retrieve all webhooks created with a Token.
string
1 2 3
curl --request GET \
--url 'https://api.trello.com/1/tokens/{token}/webhooks?key=APIKey&token=APIToken' \
--header 'Accept: application/json'
Success
Content type | Value |
---|---|
application/json | Array<Webhook> |
POST /1/tokens/{token}/webhooks
Create a new webhook for a Token.
string
string
A description to be displayed when retrieving information about the webhook.
string
The URL that the webhook should POST information to.
url
string
ID of the object to create a webhook on.
^[0-9a-fA-F]{24}$
1 2 3
curl --request POST \
--url 'https://api.trello.com/1/tokens/{token}/webhooks?callbackURL={callbackURL}&idModel=5abbe4b7ddc1b351ef961414&key=APIKey&token=APIToken' \
--header 'Accept: application/json'
Success
Content type | Value |
---|---|
application/json |
GET /1/tokens/{token}/webhooks/{idWebhook}
Retrieve a webhook created with a Token.
string
string
ID of the Webhooks to retrieve.
^[0-9a-fA-F]{24}$
1 2 3
curl --request GET \
--url 'https://api.trello.com/1/tokens/{token}/webhooks/{idWebhook}?key=APIKey&token=APIToken' \
--header 'Accept: application/json'
Success
Content type | Value |
---|---|
application/json |
PUT /1/tokens/{token}/webhooks/{idWebhook}
Update a Webhook created by Token
string
string
ID of the Webhooks to retrieve.
^[0-9a-fA-F]{24}$
string
A description to be displayed when retrieving information about the webhook.
string
The URL that the webhook should POST
information to.
url
string
ID of the object that the webhook is on.
^[0-9a-fA-F]{24}$
1 2
curl --request PUT \
--url 'https://api.trello.com/1/tokens/{token}/webhooks/{idWebhook}?key=APIKey&token=APIToken'
Success
A schema has not been defined for this response code.
DELETE /1/tokens/{token}/webhooks/{idWebhook}
Delete a webhook created with given token.
string
string
ID of the Webhooks to retrieve.
^[0-9a-fA-F]{24}$
1 2
curl --request DELETE \
--url 'https://api.trello.com/1/tokens/{token}/webhooks/{idWebhook}?key=APIKey&token=APIToken'
Success
A schema has not been defined for this response code.
DELETE /1/tokens/{token}/
Delete a token.
string
1 2
curl --request DELETE \
--url 'https://api.trello.com/1/tokens/{token}/?key=APIKey&token=APIToken'
Success
A schema has not been defined for this response code.
Rate this page: