Check if a relationship exists between two entities
One step with Confluence. We can help you get access.
Look something up
Check if a relationship exists between two entities
with Confluence
Works with AI assistants
Use Confluence: its Confluence Cloud REST Relation API lets you check if a relationship exists between two entities in a single step (GET /wiki/rest/api/relation/{relationName}/from/{sourceType}/{sourceKey}/to/{targetType}/{targetKey}). Confluence also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- Has a user favourited a specific page?
- Can I check whether one particular relationship exists from a source to a target?
Say it to your AI assistant
- Check whether {sourceType} {sourceKey} has a {relationName} relationship to {targetType} {targetKey}.
- Tell me if {sourceType} {sourceKey} has favourited {targetType} {targetKey} via relation {relationName}.
For your developer
GET /wiki/rest/api/relation/{relationName}/from/{sourceType}/{sourceKey}/to/{targetType}/{targetKey} in Confluence Cloud REST Relation API. Full spec on APIs.io.