Links

post
Authorizations
Body
playerTagstringRequired
userIdstringRequired
apiTokenstring | nullableRequired
Responses
201Success

No content

post
POST /v1/links HTTP/1.1
Host: api.clashperk.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 54

{
  "playerTag": "text",
  "userId": "text",
  "apiToken": "text"
}
201Success

No content

Authorizations
Path parameters
playerTagstringRequired
Responses
200Success

No content

delete
DELETE /v1/links/{playerTag} HTTP/1.1
Host: api.clashperk.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200Success

No content

Get links by playerTags or userIds

post
You can send either "playerTags" or "userIds", not both or none. Max size is 100.
Authorizations
Body
playerTagsstring[] · min: 1 · max: 100RequiredExample: ["#2PP"]
userIdsstring[] · min: 1 · max: 100RequiredExample: ["444432489818357760"]
Responses
200Success
application/json
post
POST /v1/links/query HTTP/1.1
Host: api.clashperk.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 56

{
  "playerTags": [
    "#2PP"
  ],
  "userIds": [
    "444432489818357760"
  ]
}
200Success
[
  {
    "tag": "text",
    "name": "text",
    "userId": "text",
    "username": "text",
    "verified": true
  }
]

Was this helpful?