Auth Grants
Add AuthGrant to your profile
Authorizations
Body
namestringOptional
descriptionstringOptional
scopestringOptional
expiresAtstring · date-time | nullableOptional
Responses
200
Successful response
application/json
Responsestring
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
500
Internal server error
application/json
post
POST /api/auth-grant/create HTTP/1.1
Host: ..
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"name": "text",
"description": "text",
"scope": "text",
"expiresAt": "2025-07-03T03:27:52.344Z"
}
text
Get AuthGrant
Authorizations
Path parameters
idstringRequired
Responses
200
Successful response
application/json
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
404
Not found
application/json
500
Internal server error
application/json
get
GET /api/auth-grant/{id} HTTP/1.1
Host: ..
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"name": "text",
"description": "text",
"challenge": "text",
"status": "revoked",
"scope": "text",
"createdAt": "2025-07-03T03:27:52.344Z",
"expiresAt": "2025-07-03T03:27:52.344Z"
}
Delete AuthGrant
Authorizations
Path parameters
idstringRequired
Responses
200
Successful response
application/json
Responseboolean
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
404
Not found
application/json
500
Internal server error
application/json
delete
DELETE /api/auth-grant/{id} HTTP/1.1
Host: ..
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
true
Get My AuthGrants
Authorizations
Body
limitnumberOptional
cursorstringOptional
Responses
200
Successful response
application/json
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
500
Internal server error
application/json
post
POST /api/profile/auth-grants HTTP/1.1
Host: ..
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 102
{
"limit": 1,
"cursor": "text",
"query": {
"id": "text",
"name": "text",
"description": "text",
"status": "active"
}
}
[
{
"id": "text",
"name": "text",
"description": "text",
"challenge": "text",
"status": "revoked",
"scope": "text",
"createdAt": "2025-07-03T03:27:52.344Z",
"expiresAt": "2025-07-03T03:27:52.344Z"
}
]
Update AuthGrant
Authorizations
Path parameters
idstringRequired
Body
Responses
200
Successful response
application/json
Responseboolean
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
500
Internal server error
application/json
post
POST /api/auth-grant/update/{id} HTTP/1.1
Host: ..
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"updates": {
"name": "text",
"description": "text"
}
}
true
Revoke AuthGrant
Authorizations
Path parameters
idstringRequired
Responses
200
Successful response
application/json
Responseboolean
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
500
Internal server error
application/json
post
POST /api/auth-grant/{id}/revoke HTTP/1.1
Host: ..
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
true
Was this helpful?