:pkg/auth/rights:no_application_rights (no rights for application xxxxx

HI,
I’m a new user who would like to test the application.
I made this call:
curl --location
–header ‘Authorization: Bearer NNSXS.xxxxxxxxxxxxxxxxxxxxxx’
–header ‘Accept: text/event-stream’
–header ‘Content-Type: application/json’
–header ‘User-Agent: my-integration/my-integration-version’
–request POST
–data-raw ‘{
“identifiers”:[{
“device_ids”:{
“device_id”:“eui-0000000000000000”,
“application_ids”:{
“application_id”:“application”
}
}
}]
}’
https://eu1.cloud.thethings.network/api/v3/events

but I get this error:
{
“error”:
{
“code”:7,
“message”:“error:pkg/auth/rights:no_application_rights (no rights for application application@ttn)”,
“details”:
[{
@type”:“type.googleapis.com/ttn.lorawan.v3.ErrorDetails”,
“namespace”:“pkg/auth/rights”,
“name”:“no_application_rights”,
“message_format”:“no rights for application {uid}”,
“attributes”:
{
“uid”:“application@ttn”
},
“correlation_id”:“7201568e41f84c0691ef569806bf00e0”,
“code”:7
}]
}
}

Where am I doing wrong?

Thanks

You need to replace the word application with your actual application ID.

Sorry, I didn’t specify.
I replaced the name of my application in the example (also device-id) .
It is correct in the message

Thanks

What rights have you assigned the API Key?

I found the problem, the API key was expired.
Thanks for the support.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.