Who the key belongs to
GET
/v1/me
const url = 'https://restapi.affattr.com/v1/me';const options = {method: 'GET', headers: {'API-KEY': '<API-KEY>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://restapi.affattr.com/v1/me \ --header 'API-KEY: <API-KEY>'The role of the key and what it gives access to. A client key: role client, the client with all its applications. An agency key: role agency, each client that granted the agency access, with the granted applications and partners (the ids to use in filter[applications] and filter[partners]).
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Access of the key
Media type application/json
object
clients
Array<object>
object
applications
Array<object>
object
apple_int_id
string
currency
string
id
integer
name
string
package_name
string
status
string
store
string
id
integer
name
string
partners
Array<object>
object
id
integer
name
string
tracking_domain
string
role
string
Example
{ "clients": [ { "applications": [ { "status": "active" } ] } ], "role": "client"}No credentials (answered with 403 until default-deny is enabled)
Media type application/json
object
error
What went wrong. 403 always says “Access denied”.
string
request_id
Id of the request, to quote to support.
string
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}Invalid credentials
Media type application/json
object
error
What went wrong. 403 always says “Access denied”.
string
request_id
Id of the request, to quote to support.
string
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}Internal server error
Media type application/json
object
error
What went wrong. 403 always says “Access denied”.
string
request_id
Id of the request, to quote to support.
string
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}